With Region. Here's an example on how to do it:
Dim objGraphics As System.Drawing.Drawing2D.GraphicsPath = New
System.Drawing.Drawing2D.GraphicsPath()
Dim intWidth, intHeight As Integer
Try
intWidth = Me.ClientSize.Width
intHeight = Me.ClientSize.Height
objGraphics.AddClosedCurve(New Point() {New Point(intWidth / 2, intHeight /
10), New Point(intWidth, 0), New Point(intWidth, intHeight / 3), New
Point(intWidth - Width / 3, intHeight), New Point(intWidth / 7, intHeight -
intHeight / 8)})
Me.Region = New Region(objGraphics)
Catch X As Exception
MessageBox.Show("Crap, went wrong:" & System.Environment.NewLine &
X.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
You can put it in load event or a click event of a button to try it.
"Phinney" <de********@worldnet.att.net> schreef in bericht
news:mN********************@bgtnsc04-news.ops.worldnet.att.net...
Any one know of a good book, or another source of information, on making
non
rectangular forms?