Simplest way to implement irregular forms in .NET






4.88/5 (37 votes)
Make irregular splash screens without writing a single line of code!
Irregular splash screens are quite common these days (e.g. Photoshop, etc.)
Do you want to make an irregular splash screen for your .NET application with minimal or no code at all? Here is the tip:
- Prepare the irregularly shaped image in GIF format with transparent background in your favorite image editor
- On your .NET WinForm, set this GIF image as the
BackgroundImage
property of the form. The image should appear on the form now - Set the
FormBorderStyle
property as 'None
' - Set the
BackgroundImageLayout
property as 'None
' - Set the
BackColor
property to a color that is not in your picture (eg. Teal) - Set the
TransparencyKey
property of form to the same color - Run the application: You have made your irregular splash
screen. Don't forget to set the
StartPosition
property toCenterScreen
too