Drawing a drag rectangle -- pls help.
-
I have an application that allows users to, using the mouse, click and hold a control and move it to another location on the form. How do I draw that un-filled drag rectangle that shows the user that they are moving something around. I need to be able to draw this drag rectangle anywhere on the screen (on the app, over other controls, on the desktop) not just on the application itself. Your help is appreciated.
-
I have an application that allows users to, using the mouse, click and hold a control and move it to another location on the form. How do I draw that un-filled drag rectangle that shows the user that they are moving something around. I need to be able to draw this drag rectangle anywhere on the screen (on the app, over other controls, on the desktop) not just on the application itself. Your help is appreciated.
The class 'System.ControlPaint' has some methods with the name 'Reversible' in them that draw onto the screen. If you use FillReversibleRectangle then you could draw four of them to get the drag rectangle you are looking for. There is only one problem with this though, you have to give a Color and so it will be a solid border around your control and not the stipled effect you want.