draw the shapes on top of the controls...
-
I have a requirement to draw a rectangle and a line on a the container control and sometimes as i move the mouse the drawing must occur on top of user controls and other controls, which are placed in the container control... I'm using System.Drawing namespace (C#) to perform the drawing. But as i move the mouse and draw the rectangles, the drawing takes place behind the user controls....I have a requirement to draw the shapes on top of the controls... Please helppppppp
-
I have a requirement to draw a rectangle and a line on a the container control and sometimes as i move the mouse the drawing must occur on top of user controls and other controls, which are placed in the container control... I'm using System.Drawing namespace (C#) to perform the drawing. But as i move the mouse and draw the rectangles, the drawing takes place behind the user controls....I have a requirement to draw the shapes on top of the controls... Please helppppppp
The controls will always be drawn on top of your rectangle because your drawing on the container the controls are in. What you need to do is draw on the controls themselves when appropriate. You can do this by handling the controls paint event. Simon