Irregularly Shaped Forms in VB.NET (Demo)

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Intermediate
Author:
Piyush Gupta

Version Compatibility: Visual Basic.NET

More information:
You can use the System.Drawing.Drawing2D assembly in .NET to create irregularly shaped form. This example creates a small polygon, but you can use the same objects to create a form of a different shape or size.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: