DrawEdge and such.

dcl3500

Mostly Harmless
Joined
Jun 30, 2001
Messages
51
Location
NE PA, USA
Hi all,

Ok trying to do a form, FormBorderStyle = None. Then I want to put a bump border around it. Easy stuff in VB6, really got me lost here in .Net though. Appreciate any hints in that direction.
 
Hey Don, good to see you again.

Youll find what you need in the ControlPaint class. Put this in the forms Paint event:
Code:
ControlPaint.DrawBorder3D(e.Graphics, Me.DisplayRectangle, Border3DStyle.Etched)
There are other bump styles, just check out the Border3DStyle enum.
 
Heh, thanks Volte, spent several hours yesterday without finding that one. Of course found several other things, totally unrelated, that were pretty useful and interesting.
 
Back
Top