Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
 
TitleMake parts of a form transparent in VB .NET
Keywordsform, transparent, VB.NET
CategoriesGraphics, VB.NET, Tips and Tricks
 
Set the form's TransparencyKey property to the color you want to be transparent.

In many cases, you will also want to hide the form's control box, borders, and caption.

If you hide the control box, be sure to include a Close button or some other method to allow the user to close the form.

 
Me.ControlBox = False
Me.FormBorderStyle = _
    System.Windows.Forms.FormBorderStyle.None
Me.TransparencyKey = System.Drawing.Color.Purple
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated