Does anyone knows how to draw a Black outlined Rectangle around a Button,

piscis

Well-known member
Joined
Jun 30, 2003
Messages
54
Gentleman:

Does anyone knows how to draw a Black outlined Rectangle around a Button, Text or Picture on a MouseHover event. See graphic attached?


Thanks


Andy
 

Attachments

  • mousehoveroutline.gif
    mousehoveroutline.gif
    17.3 KB · Views: 38
Create a Rectangle object and put the info into it for the rectangle you will draw. Then use the DrawRectangle function (of the Graphics object) to draw the rectangle. Then, call rect.Inflate(-3, -3) to make the rectangle 3 pixels smaller, and then call DrawRectangle again.
 
Back
Top