Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
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-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated