form shape?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi, i kno u can create different shaped buttons and such, but is there any
way to create a different shaped form? thanks
 
Try this simple example from a book, User Interfaces in VB.Net by Matthew
MacDonald (Apress - ISBN 1-59059-044-954995).

Imports System.Drawing.Drawing2D

Private Sub Form1_Load(ByVal sender as System.Object, ByVal e as
System.EventArgs) Handles MyBase.Load

Dim Path as New Graphics
Path.Add(0, 0, Me.Width, Me.Height)
Me.Region = New Region(Path)

End Sub

HTH, Phil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top