I'm trying to make a program and I'm stuck with one thing. The idea is basic, but I cant find it online (probably not looking right). What I want is click a button and in the same window change everything that shows. For example create 2 different forms and when I click in some button the window keeps beeping the same but the form changed to the 2nd form. It's seams simple enough to do, but I cant manage to do it. Any suggestions?
Asked
Active
Viewed 72 times
0
-
1You have options. You can show hide any form you want or you can create two placeholders on one form on top of each other. One is initially hidden another is not. Then you can just swap the visibility on each. – The Muffin Man Sep 11 '14 at 16:56
-
UserControls,build each with the desired controls and design,then depending on user choice display the right one,its one idea.... – terrybozzio Sep 11 '14 at 17:00
-
1Have you tried a tab control? – JWiley Sep 11 '14 at 17:04
1 Answers
0
You could use a TabControl withot Headers. For archieving that, you can hook into the tabcontrols WndProc method and catch the TCM_ADJUSTRECT message. You can find an example code over here: http://www.dotnetthoughts.net/creating-wizard-using-windows-forms/

Stefan Baumann
- 46
- 5
-
Looks like that blogger got the code from Hans: [Creating Wizards for Windows Forms in C#](http://stackoverflow.com/a/2342320/719186) – LarsTech Sep 11 '14 at 17:12
-
-