Opacity

  • Thread starter Thread starter Jm
  • Start date Start date
J

Jm

Hi All

Im wondering if theres is a way to make a form object the only thing thats
becomes opaque when you modify the opacity. So if i have labels and a
picturebox can i make them non opaque whilst still making the form opaque.
Im trying to design a splash screen. Thanks
 
One way of doing this would be to set the backcolor of the form to an color
with an alpha level. Since this is a splash screen you could then set the
forms style to one that has no border or titlebar.

Robby
 
The alpha of a color sets its transparency level. 255 is completely opaque
and 0 is completely transparent. You can set the alpha on an existing color
using the shared Color.FromArgb method. For example in the form

Me.BackColor = Color.FromArgb(127, SystemColors.Control)

will set the backcolor of the form to a halfway transparent color of the
system's control color.

Robby
 
Hi,

Here are some links on making irregularily shaped forms.

http://msdn.microsoft.com/library/d...apedWindowsFormsControlsInVisualStudioNET.asp

http://msdn.microsoft.com/msdntv/episode.aspx?xml=episodes/en/20040401WinFormsMH/manifest.xml

http://www.windowsforms.com/Samples/download.aspx?PageId=1&ItemId=179&tabindex=4

Ken
--------------------------
Hi All

Im wondering if theres is a way to make a form object the only thing thats
becomes opaque when you modify the opacity. So if i have labels and a
picturebox can i make them non opaque whilst still making the form opaque.
Im trying to design a splash screen. Thanks
 
Back
Top