Form With Transparent Color (Windows XP/2000)

Category:
Windows 2000/XP
Type:
Snippets
Difficulty:
Intermediate
Author:
Amol

Version Compatibility: Visual Basic 6

More information:
This gives you a transparent form with two lines of code. It uses the SetLayeredWindowAttributes API function, which only works on Windows 2000, XP, and Windows Server 2003.

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

Declarations:

Code: