[VB.NET] Transparent Form


Description
      Learn how to make form into transparent without make another object transparent, it's different from opaque that make transparent all object.

How To
1. first make the background color of the form into white color (color.white)

2. On Event Load Form , write this code :
        TransparencyKey = Color.White
        BackColor = Color.White

3. Done , you form is transparent and you can add control object over it but don't give the background of control object into white color because it will become transparant too (white = transparant) so use a color other than white.

4. to bring form background you can use "picture box" and set property "Background Image Layout" into "center", why "picture box" ? because "picture box" support transparent color from file format like GIF and PNG. so you can make border of your form not always rectangle, it's based your imagination :)

5. set position of your "picture box" into behind by right click of  "picture box" , and click "Send to Back"

6. please comment if you having difficult or another idea :).

Post a Comment

Harap gunakan bahasa yang baik dan sopan, terima kasih