Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. "Setup-Wizard-like" layout manager in C# ?

"Setup-Wizard-like" layout manager in C# ?

Scheduled Pinned Locked Moved C#
questioncsharpjavacareerworkspace
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    erajsri
    wrote on last edited by
    #1

    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 ! :)

    C C 2 Replies Last reply
    0
    • E erajsri

      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 ! :)

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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++

      C 1 Reply Last reply
      0
      • C Christian Graus

        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++

        C Offline
        C Offline
        ChesterPoindexter
        wrote on last edited by
        #3

        www.codeproject.com/cs/miscctrl/magicwizard.asp The Magic tool kit has a fairly easy to use wizard you might want to look at....

        C 1 Reply Last reply
        0
        • C ChesterPoindexter

          www.codeproject.com/cs/miscctrl/magicwizard.asp The Magic tool kit has a fairly easy to use wizard you might want to look at....

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          You should post this as a response to the original poster, so he gets an email notification of it. Christian Graus - Microsoft MVP - C++

          1 Reply Last reply
          0
          • E erajsri

            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 ! :)

            C Offline
            C Offline
            ChesterPoindexter
            wrote on last edited by
            #5

            www.codeproject.com/cs/miscctrl/magicwizard.asp The Magic tool kit has a fairly easy to use wizard you might want to look at....

            E 1 Reply Last reply
            0
            • C ChesterPoindexter

              www.codeproject.com/cs/miscctrl/magicwizard.asp The Magic tool kit has a fairly easy to use wizard you might want to look at....

              E Offline
              E Offline
              erajsri
              wrote on last edited by
              #6

              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. :)

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups