Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted

Creating forms that dont have a standard shape is very easy :)

 

Declare a new Drawing2D.GraphicsPath.

Add different shapes that you want.

graphpath.AddEllipse ' or whatever you want

Then set the region of your form to that.

Me.Region = New Region(graphpath)

Now your form will look like an ellipse :)

 

To make things even better follow Merrion's tutorial about moving captionless forms:

http://www.xtremedotnettalk.com/showthread.php?s=&threadid=72831

Posted

i couldn't 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

  • *Experts*
Posted

That was just an example of what you can add, you have to type in the actual values :), like:

graphpath.AddEllipse(100, 100, 100, 100) 'just an example values

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