Click to See Complete Forum and Search --> : Making Two Forms and linking them.


Rehael
August 6th, 2009, 06:12 AM
Hello, let me describe my problem.
In order to reduce the opacity of a webcontrol the only way is to reduce the opacity of the form that he's in.
so i tought about making a second form in the projet to use mainly & only for this web control and reduce the opacity.
the second form works, but now i need a good way to make the form 2
appear on Form 1 at X,Y position.
make it so that when Form1 is moved, Form2 moves with it.

please help :x

HanneSThEGreaT
August 6th, 2009, 06:24 AM
You'll have to override the WndProc event :)

http://stackoverflow.com/questions/932988/c-form-control-move

http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.languages.csharp/2009-02/msg01818.html

http://www.codeproject.com/KB/cs/csharpmovewindow.aspx?msg=2087148

Rehael
August 6th, 2009, 07:38 AM
Wow, can't we simply use some sort of element host?

HanneSThEGreaT
August 6th, 2009, 08:21 AM
No. The whole problem is, whenever a form is dragged by its titlebar a system message gets sent, that is why we need to catch that event, and make it do what we want, i.e., override.