If you really want it to look like one form, then put all the information on
one form. It can start with the "advanced" controls hidden, and the form
size smaller so they don't show. Then on the click, show the hidden
controls, and change the size of the form so they will fit.
Yes, the advanced controls at least should be on their own panel (or
similar.) So you say something like foreach( Control c in panel1.Controls)
{ c.Show(); }
and also something like
Form1.Height += panel1.Height;
when you want to show the advanced information.
-Rachel
"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:Ol**************@TK2MSFTNGP09.phx.gbl...
Hi,
If I understand you correctly you can do this by putting all controls for
one form on a single panel or container control (custom control) of your
choice and the controls for the other form on another panel/container. At
the click of the button, the panels will switch visibility, hiding one and
showing the other panel.
Happy Coding!
Morten Wennevik [C# MVP]
"osnat o" <oo****@hotmail.com> skrev i melding
news:ux**************@tk2msftngp13.phx.gbl... Thanks for the replay, but this is not what I meant.
My question is:
I want that the new form will be connected to the exiting form - that it
will look like it is the same form. Like a basic display and when I will
press a button I will get an advanced display (same border and when I
will change the size of one form the size of the other one will be
change automatically...)
I hope this is clearer
Waiting for your answer
Thanks again
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!