Tell me, please - why why this method doesn't work? -

private void MapForm2_Load (object sender, EventArgs e) / / loading the map.

            Color redColor = Color.Black;
            Rectangle r1 = new Rectangle (1, 2, 35, 35);

thanks in advance)

You defined a color named redColor as being Black?
Next you define a new rectangle
But you are not drawing anything!
Use code like this:http://msdn.microsoft.com/en-us/library/aa287521(VS.71).aspx
or use the Paint event, it gives you a Graphics object for free via PaintEventArgs

commented: ++ +1

yea,really)) i'll watch it now...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.