O
\(O\)enone
To assist my users in identifying where a dragged control will be dropped on
my WinForms form, I wish to be able to draw a transparent box on the top of
my form which will surround the area into which the drop will take place.
Essentially I just need to be able to draw a rectangle on top of my form,
but the inside of the rectangle must be fully transparent so that it doesn't
hide the controls behind it.
In VB6 I would have achieved this using a shape control. How can I do this
in .NET?
The only workable option I've come up with so far is to use four label
controls with a coloured background, and arrange these so that each one
forms one of the four sides of the rectangle. This seems like a lot of
messing about to implement though. Is there a simpler way I can achieve
this?
TIA,
my WinForms form, I wish to be able to draw a transparent box on the top of
my form which will surround the area into which the drop will take place.
Essentially I just need to be able to draw a rectangle on top of my form,
but the inside of the rectangle must be fully transparent so that it doesn't
hide the controls behind it.
In VB6 I would have achieved this using a shape control. How can I do this
in .NET?
The only workable option I've come up with so far is to use four label
controls with a coloured background, and arrange these so that each one
forms one of the four sides of the rectangle. This seems like a lot of
messing about to implement though. Is there a simpler way I can achieve
this?
TIA,