473,594 Members | 2,651 Online
Bytes | Software Development & Data Engineering Community
+ 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 7677
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******@rhuba rbrhubarbblahbl ah.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.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
5770
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) property. Make entire blocks and inlines transparent without resorting to transparent PNGs." http://weblogs.mozillazine.org/hyatt/archives/2003_10.html#004249 Now, I have a demo page which works for MSIE 6 for Windows and Mozilla-based browsers but...
3
10212
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 in practical real life situations. The soon forthcoming CSS3 recommendation does not serve the public interests in this area not at all. The problem relies in the definition what opacity is, how it is to applied to page elements. In past 5...
2
2445
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 before the smooth fading out. It never does it from 0.0 to 0.1, only from 1.0 to 0.99. Anyone seen this before?
6
3714
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 property at design time or in code just fine, but as soon as I move the form to a new location on the screen, it becomes completely opaque. If I then try to set the opacity property again, I get an error message. Any idea what's going wrong? Bob
0
981
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 the opacity to anything below 100%, then reset it back to 100% (non-opaque) the MDI and child forms start having wierd things happen to them. Things sometimes don't get painted correctly, or more importantly, the forms seem to slow way down while...
1
4484
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 that looks like Adobe Acrobat's which appears to draw outside its bounds. To do this, I am setting the Transparency of the SplachScreen form to its background color and then drawing my screen (which appears to have no background). It looks really...
0
321
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
4957
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 rtb control, so I was wondering if anyone had done this before. I'm looking for the effect of fading in at a specific point in the form (when a timer ticks actually). I also don't mind some effect like the size of the control starting smaller...
2
2340
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 have tried with Dim p As Integer Dim Vent As Integer For p = 100 To 0 Step -1 Me.Opacity = p For Vent = 1 To 100000
0
7941
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7874
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8368
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6652
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5738
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3895
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2383
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1476
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1205
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.