473,473 Members | 2,316 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Opacity property for MDI child forms...

Hello,

Is there a way to alter the opacity of an MDI child window? I've tried
setting the Opacity property, but it has no effect on the children (fine
for the parent though).

(I want to write an app where I can open several images in child forms,
resize them and manually overlay them on top of each other, and control
the transparency so I can fade from one to the other to visually compare
them).

Thanks,

Gary
Nov 21 '05 #1
4 7667
The Opacity just calls to the Layered Windows api. That api only works with
top level windows - i.e. windows without parents; it won't work with an mdi
window.
--
http://www.khsw-be.net
"beaker" wrote:
Hello,

Is there a way to alter the opacity of an MDI child window? I've tried
setting the Opacity property, but it has no effect on the children (fine
for the parent though).

(I want to write an app where I can open several images in child forms,
resize them and manually overlay them on top of each other, and control
the transparency so I can fade from one to the other to visually compare
them).

Thanks,

Gary

Nov 21 '05 #2
kHSw wrote:
The Opacity just calls to the Layered Windows api. That api only works with
top level windows - i.e. windows without parents; it won't work with an mdi
window.


Hmmm.... can anyone suggest an alternative way I might go about solving
my problem then?

Thanks.
Nov 21 '05 #3
I guess you could try using Windows API's (here's an example:
http://www.planetsourcecode.com/vb/s...44695&lngWId=1)

But I've seen some unpredictable behaviour using MDI's and Transparency like
menu's not refreshing, no close button on the form, ...
--
http://www.khsw-be.net
"beaker" <bl******@rhubarbrhubarbblahblah.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
kHSw wrote:
The Opacity just calls to the Layered Windows api. That api only works
with top level windows - i.e. windows without parents; it won't work with
an mdi window.


Hmmm.... can anyone suggest an alternative way I might go about solving my
problem then?

Thanks.

Nov 21 '05 #4
kHSw wrote:
I guess you could try using Windows API's (here's an example:
http://www.planetsourcecode.com/vb/s...44695&lngWId=1)

But I've seen some unpredictable behaviour using MDI's and Transparency like
menu's not refreshing, no close button on the form, ...


Thanks, I'll take a look at that
Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: DU | last post by:
According to a recent post, it seems that Konqueror 3.1+ and Safari 1.1 support CSS3 opacity style property under a proprietary name: "Support for the CSS3 opacity (using -khtml-opacity)...
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...
2
by: Adam | last post by:
Hi everyone, I have a simple timer which decreases the Opacity from 1.0 to 0.0 and back again. The problem I have is, when it changes from 1.0 to 0.99, the whole form flickers completely...
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...
0
by: Tom | last post by:
I have an MDI application where I allow the user to set the opacity of the main MDI form (thereby also setting the opacity for any child forms). This works great; however, I notice that if I set...
1
by: Brian | last post by:
If your like me, you have probably seen way too many demos of the opacity property of a form. Well I finally have a need for it and I am having an issue. I am trying to create a splash screen...
0
by: Rob | last post by:
Is there a way to set the opacity of my individual MDIChild Forms. I can set the opacity of the MDIParent Form, but I cannot set the opacity of the individual child Forms. Why ?
1
by: marfi95 | last post by:
Hi all. I have some forms that use the opacity property to fade in/out. I'd like to do the same kind of thing with a richtextbox on one of my forms. Doesn't look like opacity is exposed on the...
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...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
1
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.