473,399 Members | 3,656 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,399 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 1991
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.