Click here to Skip to main content
16,016,501 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I'm developing a Windows Forms application that uses an MDI and child forms. The MDI has an image for the background. I am trying to make the child form background be transparent so the MDI image shows through. I have trawled the internet, and from my understanding this is not possible. However, it seems to be possible in unmanaged code using APIs. Are there any examples of how to do this and what API I should use (preferably in C#)?

Many thanks in advance.

Andy:confused:
Posted

If you can't set the opacity using the opacity of the background brush you assign, then I'm not sure how you'd do this, or what C++ APIs would do it. Have you considered using WPF ?
 
Share this answer
 
Hi, setting the opacity using ARGB components, is not allowed on a form background, tried that!

Also, I didn't want to use WPF as the App needs to be backward compatible with Win 2000 and Win XP below SP2.

Thanks for your comments anyway.

Andy (MCTS)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900