Creating irregularly shaped forms...

vis781

Well-known member
Joined
Aug 30, 2005
Messages
2,016
Location
Cambridge, UK
Programming Experience
5-10
This is not a enquiry just a little tip for all those trying to make a custom shaped form. Mose people will revert to the transparency key, frankly this property is twitchy at best and not really designed for this purpose. Better to create your graphics path with the shape you desire and this assign this graphics path the to the forms protected region property.

VB.NET:
Me.region = new region(Graphicspath)

Hope someone finds this useful

P.s you may well ask why this property doesn't show up in intellisense. That is because intellesense doesn't show any of the protected members. There's a whole host of other useful stuff. Check out the members section of the control you want at MSDN. You'd be surprised.
 
Last edited:
As promised, a demo of using the forms protected region property to create forms of all shapes and sizes. Remember it can be any shape you like.
 

Attachments

  • WindowsApplication2.zip
    18.3 KB · Views: 94
Back
Top