Forms Question
-
I was wondering if a person wanted to display something similar to a wizard setup form with a next button that showed a different set of controls on the form depending on how many times the next button was pressed how would it be done. I am using panels right now and flipping back and forth but I am intersted in just doing it with multiple forms. I find panels messy to develope with. Thanks, Steve
-
I was wondering if a person wanted to display something similar to a wizard setup form with a next button that showed a different set of controls on the form depending on how many times the next button was pressed how would it be done. I am using panels right now and flipping back and forth but I am intersted in just doing it with multiple forms. I find panels messy to develope with. Thanks, Steve
If you are looking for a Wizard style UI, the below links can help. http://www.codeproject.com/cs/miscctrl/TSWizard.asp[^] http://www.dotnetmagic.com/[^] Cheers, Kannan
-
I was wondering if a person wanted to display something similar to a wizard setup form with a next button that showed a different set of controls on the form depending on how many times the next button was pressed how would it be done. I am using panels right now and flipping back and forth but I am intersted in just doing it with multiple forms. I find panels messy to develope with. Thanks, Steve
There are several ways to go about it. One is to use panels like you are now, as you noted it is clumsy to work with. Another way is to base your wizard on the TabControl, then you can create each of your steps as a tab on the control. Yet another way (and the way *plug plug* my wizard framework[^] uses) is based on User Controls, where each step is a separate User Control. I have a specialized form that handles all of the work of switching in and out, you just need to handle a few events to tell it how it should work. James "It is self repeating, of unknown pattern" Data - Star Trek: The Next Generation
-
I was wondering if a person wanted to display something similar to a wizard setup form with a next button that showed a different set of controls on the form depending on how many times the next button was pressed how would it be done. I am using panels right now and flipping back and forth but I am intersted in just doing it with multiple forms. I find panels messy to develope with. Thanks, Steve