shaped forms

badgerboy

Member
Joined
Jun 10, 2003
Messages
11
Location
Wellingborough (UK)
is it possible to create shaped forms that look good. Can I set areas of the form to be transparent so it creates the illusion of it being shaped or not there but its just transparent.

Also how can I preview HTML in a form or RTB (Rich text box)

Thanking in advanced Badgerboy
 
Creating forms that dont have a standard shape is very easy :)

Declare a new Drawing2D.GraphicsPath.
Add different shapes that you want.
Code:
graphpath.AddEllipse  or whatever you want
Then set the region of your form to that.
Code:
Me.Region = New Region(graphpath)
Now your form will look like an ellipse :)

To make things even better follow Merrions tutorial about moving captionless forms:
http://www.computerhelp.forum/showthread.php?s=&threadid=72831
 
i couldnt get it to work kept coming up with this error

Overload resoultion failed beacause AddEllispe accepts this number of arguements

please help
thanking in advanced Badgerboy
 
That was just an example of what you can add, you have to type in the actual values :), like:
Code:
graphpath.AddEllipse(100, 100, 100, 100) just an example values
 
Back
Top