Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create a Transparent form over another form. The intention is to have controls in this Transparent form, so that these controls looks as if they are on the Main form.

Now I want to set my Main form as Parent to this Transparent form, so that resize,minimize etc can be handled.

This works fine except in Windows 7 OS.

I have already posted a question related to this [Issue in Win 7][^]

Now I am in doubt if the method followed, to achieve this behaviour is correct or not !

Please let me know, if the are any other possible ways to bind a Transparent form to another form.
Posted
Comments
Kenneth Haugland 24-Sep-15 0:32am    
This is WinForms so I don't really know the answer, but It sounds to me as you are doing something unnecessary difficult here?
Lakamraju Raghuram 24-Sep-15 1:12am    
Yeah, sounds to me the same. So only I have posted to know the procedure to have a transparent from over another Parent form
Ralf Meier 24-Sep-15 4:36am    
If you want to have a "Transparent Form" you could do this with the Opacity-Property.
Unfortunately this Property also sets the Opacity to every Control on this Form. So you have to customize your Form. Is it that what you want to do ?
In this case I could give you Information.
But you should know, that every control, which is "under" the transparent Form is not usable ...
Lakamraju Raghuram 25-Sep-15 0:00am    
Thanks Ralf for your reply.
I have no trouble in creating Transparent form. I am using TransparentKey and BackColor properties. I am facing problem while setting another form as Parent to this Transparent form.
I want this parent-child relationship, so that resize,minimize could be handled easily.
Maciej Los 27-Sep-15 17:48pm    
Sergey Alexandrovich Kryokov[^] had mentioned several times on this forum: forget about child-parent relationship, because it's NOT really operational.
Please, see His answers[^] to similar questions.

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