I dount. I dont think so.
But if this is only the look you want do have (so from 2 forms will be look like 1), you can do the following:
- put all the controls on each form intoa userControl (together with the code of course)
- create a third form (new one) and use those two userControls on it!
I cant see any other reasonable solution to this. I havent even heard of it before.
Mitja Bonca
Nearly a Posting Maven
2,485 posts since May 2009
Reputation Points: 641
Solved Threads: 474
You can put a panel on the form, put all the first page controls on it, put another panel and put all the second page controls. Then hide whichever panel you won't want to display.
Momerath
Nearly a Senior Poster
3,384 posts since Aug 2010
Reputation Points: 1,232
Solved Threads: 558
If the first form is an MDI master form (has IsMDIContainer = true) and the second form is a child form (has MdiParent = firstform) then the child form is held inside the borders of the main form.
Setting the borders of the child form to be None (FormBorderStyle = None) and maximizing it (or setting Dock = Fill) will make the form fill the work area of the main form and appear as if it is a panel in the main form.
----
Alternately load the form as a control in the main form.
var child = new ChildForm();
this.Controls.Add(child);
If the child form has a border it acts just like a regular form but is captured inside the main form.
Again, set borders to None, set Dock or maximize to get the effect you want.
nick.crane
Nearly a Posting Virtuoso
1,230 posts since Feb 2010
Reputation Points: 375
Solved Threads: 187