Hawkvalley1
asked on
ControlPaint.FillReversibleRectangle
Hi am looking to try to get a similar look to the windows mousedown rectangle you see in Vista on the desktop. Semi-translucent light blue rectangle. I have tried this in the mousemove event - (r) being the updated points:
Dim color As Color = Color.FromArgb(30, 0, 200, 255)
ControlPaint.FillReversibl eRectangle (r, color)
Other ideas? I am an advanced-beginner in GUI+ , thanks for the help...
Dim color As Color = Color.FromArgb(30, 0, 200, 255)
ControlPaint.FillReversibl
Other ideas? I am an advanced-beginner in GUI+ , thanks for the help...
Where are you trying to get this?...on your form?...or on the desktop too?
ASKER
On my picturebox - winforms, sorry I missed that. VB 2008.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes that's it. I had to adjust the startPT and endPT with PointToScreen coordinates, but it works great. I want a crisp edge for it so I'll work on the paint event for it to draw a border - see if that will work. You have always have a great mind for things like this - no pun intended LOL.
Yeah...you should be able to pop something pretty easily into the paint event to get a border. =)
ASKER
Thanks again.
ASKER
This made a very crisp border!
ControlPaint.DrawReversibl eFrame(sf. Bounds, Drawing.Color.Black, FrameStyle.Thick)
Painting one was not as crisp due to the opacity.
ControlPaint.DrawReversibl
Painting one was not as crisp due to the opacity.