"Setup-Wizard-like" layout manager in C# ?
-
Hi, I'm building an app in C#. It's a Windows App and it needs this common functionality ( we probably get to see in many windows apps ) where the user can keep on pressing the "Next" button when he finished entering a certain amount of data to go to the next level / display different controls. The situation Im trying to explain is similar to a Setup program that executes an installation, while you keep on pressing the "Next" button. So how can i achieve this in C# ? I know that in Java there are several Layout Managers like Card Layout to handle this type of situations. The only way possible I think is to add all the controls to be displayed in each step to a collection of Panels and then toggle their visibilty as needed. But isnt there any easier way like in Java to get the job done ? Thanx in advance ! :)
-
Hi, I'm building an app in C#. It's a Windows App and it needs this common functionality ( we probably get to see in many windows apps ) where the user can keep on pressing the "Next" button when he finished entering a certain amount of data to go to the next level / display different controls. The situation Im trying to explain is similar to a Setup program that executes an installation, while you keep on pressing the "Next" button. So how can i achieve this in C# ? I know that in Java there are several Layout Managers like Card Layout to handle this type of situations. The only way possible I think is to add all the controls to be displayed in each step to a collection of Panels and then toggle their visibilty as needed. But isnt there any easier way like in Java to get the job done ? Thanx in advance ! :)
If you want to show a whole lot of different screens, then I don't see a simpler way of doing it than creating panels as seperate user controls, then adding them all to your form. I'd put the page names into an array, the pages into a hash table by name, and add methods for go forward and backwards that look up the right panel to make visible, if you call an internal method that's a lot easier than trying to hide all panels but one in a lot of different places. Christian Graus - Microsoft MVP - C++
-
If you want to show a whole lot of different screens, then I don't see a simpler way of doing it than creating panels as seperate user controls, then adding them all to your form. I'd put the page names into an array, the pages into a hash table by name, and add methods for go forward and backwards that look up the right panel to make visible, if you call an internal method that's a lot easier than trying to hide all panels but one in a lot of different places. Christian Graus - Microsoft MVP - C++
www.codeproject.com/cs/miscctrl/magicwizard.asp The Magic tool kit has a fairly easy to use wizard you might want to look at....
-
www.codeproject.com/cs/miscctrl/magicwizard.asp The Magic tool kit has a fairly easy to use wizard you might want to look at....
You should post this as a response to the original poster, so he gets an email notification of it. Christian Graus - Microsoft MVP - C++
-
Hi, I'm building an app in C#. It's a Windows App and it needs this common functionality ( we probably get to see in many windows apps ) where the user can keep on pressing the "Next" button when he finished entering a certain amount of data to go to the next level / display different controls. The situation Im trying to explain is similar to a Setup program that executes an installation, while you keep on pressing the "Next" button. So how can i achieve this in C# ? I know that in Java there are several Layout Managers like Card Layout to handle this type of situations. The only way possible I think is to add all the controls to be displayed in each step to a collection of Panels and then toggle their visibilty as needed. But isnt there any easier way like in Java to get the job done ? Thanx in advance ! :)
www.codeproject.com/cs/miscctrl/magicwizard.asp The Magic tool kit has a fairly easy to use wizard you might want to look at....
-
www.codeproject.com/cs/miscctrl/magicwizard.asp The Magic tool kit has a fairly easy to use wizard you might want to look at....
Thank you very much guys ! I looked up the Magic Wizard code project. I think thats more inline with my requirement. I actually do not hav the time to go thru it now, but when i get back home Ill take a look at it and say how well it suits my purpose, as well as .NET's work around for such a situation. And also, it jus struck me that my original solution ( the panel collection ) is not that feasible, cos it would take up some memory overhead wudn't it ? Thanx again guys , sorry for this late and hasty response. :)