473,386 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Opacity

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
4 1990
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
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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dean Edwards | last post by:
I am attempting to change the opacity of an image. I can modify opacity ok: function flip(pic, opacity){ pic.style.filter = 'alpha(opacity='+opacity+')'; } But I'm not familiar with...
0
by: kaeli | last post by:
All, The following is an example of what I'm trying to do: I have a box set to be partially transparent. I want the text in the box to NOT be partially transparent. This works in IE, but NN7 has...
3
by: Marek Mänd | last post by:
This posting will express my concern about the future of css3 forthcoming recommendation. I think for long time now, that the current implementation of CSS attribute opacity is less than usable...
6
by: Robert A. Boudra | last post by:
As you will probably guess, I'm just starting out with VB.net although I'm a long time VB developer. I was playing around with the Opacity property of a form and have found that I can set the...
1
by: mhoeneveld | last post by:
I am writing a small script to fade the opacity of an image/object. The script itself works fine only I do have some unwanted behaviour. I do use a tablecell object and the mouseover/mouseout to...
2
by: reidarT | last post by:
I want a windows form to act like the one in Outlook when you get a new message and it is visible for about a couple of seconds and then the opacity decreases and the form dissapears in the end I...
16
by: Darko | last post by:
Hi, I'm trying to get and set an element's opacity, but I'm stuck with, what a hell of surprise, Internet Explorer. As for getting the element's opacity, I have the following (not working) lines...
15
by: Sunny | last post by:
Hi, I can change the lement opacity in IE using. abc.style.filter = 'alpha(opacity=' + 10 + ')'; But this dont work in firefox, In firefox it throws error. How I can change the opacity of an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.