opacity property not working

D

David Schmidt

Let me start by saying that I have successfully used the Form.Opacity
property in many other windows in my application.

I have several forms that inherit from a base class form that do not seem to
respond to the Opacity property. I've tried setting it in the designer and
programatically. I've inspected the property in the debugger and it shows up
at Opacity = .75, as desired.

As I said, I can successfully put other windows that have varying levels of
transparency up at the same time which work just fine.

Any help would be appreciated.

Thanks,
Davey
 
S

Stoitcho Goutsev \(100\) [C# MVP]

Hi David,

Is the other applications work on the same machine?
I'm asking because the Opacity uses layered windows and they are supported
by w2k and higher. On win9x that proeprty shouldn't work.
Can you reproduce that problem in a test application?
 
D

David Schmidt

Thanks for the quick response.

I have the problem on WindowsXP and Windows2000. I am aware of the
limitiations of non-Win2K based operating systems.

I'll work up a simplified test case.

Thanks,
Dave



Stoitcho Goutsev (100) said:
Hi David,

Is the other applications work on the same machine?
I'm asking because the Opacity uses layered windows and they are supported
by w2k and higher. On win9x that proeprty shouldn't work.
Can you reproduce that problem in a test application?


--
Stoitcho Goutsev (100) [C# MVP]


David Schmidt said:
Let me start by saying that I have successfully used the Form.Opacity
property in many other windows in my application.

I have several forms that inherit from a base class form that do not seem
to
respond to the Opacity property. I've tried setting it in the designer and
programatically. I've inspected the property in the debugger and it shows
up
at Opacity = .75, as desired.

As I said, I can successfully put other windows that have varying levels
of
transparency up at the same time which work just fine.

Any help would be appreciated.

Thanks,
Davey
 
H

Herfried K. Wagner [MVP]

David Schmidt said:
Thanks for the quick response.

I have the problem on WindowsXP and Windows2000. I
am aware of the limitiations of non-Win2K based operating
systems.

Are you running Windows with 32 bpp color depth?
 
D

David Schmidt

I figured out the difference in my forms' transparency.

Apparently, if you set the Form.MdiParent property, the opacity property is
rendered impotent.

Does anyone know if there is a way to allow a form that is used as an mdi
child to be transparent?

BTW- I am using 32bpp color depth.

-Dave Schmidt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top