Translucent/Tranparent Forms in VB.NET (1 Line of Code)

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

Version Compatibility: Visual Basic.NET

More information:
Unlike as in VB6, where you have to use the API to create a translucent or transparent form, you only need one line of code to do so in VB.NET. Specifically, all you have to do is set the opacity property of the form to the desired value.

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

Declarations:

Code: