By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,983 Members | 2,082 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,983 IT Pros & Developers. It's quick & easy.

Opacity

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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

"Jm" <ja*****@ihug.com.au> wrote in message
news:cr**********@lust.ihug.co.nz...
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

Nov 21 '05 #2

P: n/a
Jm
Hi Robby

What do you meam by an color with an alpha level ?

"Robby" <ed****@not.my.email.com> wrote in message
news:uk**************@TK2MSFTNGP15.phx.gbl...
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

"Jm" <ja*****@ihug.com.au> wrote in message
news:cr**********@lust.ihug.co.nz...
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


Nov 21 '05 #3

P: n/a

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
"Jm" <ja*****@ihug.com.au> wrote in message
news:cr**********@lust.ihug.co.nz...
Hi Robby

What do you meam by an color with an alpha level ?

"Robby" <ed****@not.my.email.com> wrote in message
news:uk**************@TK2MSFTNGP15.phx.gbl...
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

"Jm" <ja*****@ihug.com.au> wrote in message
news:cr**********@lust.ihug.co.nz...
> 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
>
>



Nov 21 '05 #4

P: n/a
Hi,

Here are some links on making irregularily shaped forms.

http://msdn.microsoft.com/library/de...lStudioNET.asp

http://msdn.microsoft.com/msdntv/epi...H/manifest.xml

http://www.windowsforms.com/Samples/...179&tabindex=4

Ken
--------------------------
"Jm" <ja*****@ihug.com.au> wrote in message
news:cr**********@lust.ihug.co.nz...
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

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.