How would I create a transperant form in VB.NET (enabled through a menu item ?
Printable View
How would I create a transperant form in VB.NET (enabled through a menu item ?
In the Form's property window. Set property Opacity < 100%.
Or at runtime:
VB Code:
me.Opacity = .50
^oops
the only problem with using Opacity is that all controls on the form will gain the same amount of transparency :)
sorry to correct you but itsQuote:
In the Form's property window. Set property Opacity < 100%.
Or at runtime:
visual basic code:--------------------------------------------------------------------------------
me.Opacity = 50
VB Code:
me.Opacity = 0.50
opacity is a double and works from a range 0.0 to 1.0 thus 0.50 is 50% :)
So he must set a transparent key for the form and set the back color of form to that color. Now an issue arises. If the graphic card supports transparency in 32 bit color, then the controls that have the same back color as the form will be shown transparent but still register mouse, if not the controls would not be shown transparent. However in 16 bit mode they will be shown transparent and don't register mouse. Weird.:oQuote:
Originally posted by dynamic_sysop
the only problem with using Opacity is that all controls on the form will gain the same amount of transparency :)