Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Don

 

"When you're in jail, a good friend will be trying to bail you out. A BEST friend will be in the cell next to you saying, 'Damn, that was fun.'" - Anon.

  • *Experts*
Posted

Hey Don, good to see you again.

 

You'll find what you need in the ControlPaint class. Put this in the form's Paint event:

ControlPaint.DrawBorder3D(e.Graphics, Me.DisplayRectangle, Border3DStyle.Etched)

There are other bump styles, just check out the Border3DStyle enum.

Posted
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.

Don

 

"When you're in jail, a good friend will be trying to bail you out. A BEST friend will be in the cell next to you saying, 'Damn, that was fun.'" - Anon.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...