Multiple forms

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ronnie5
    New Member
    • Jul 2007
    • 2

    Multiple forms

    Hi,

    I am new to c# and need some help with my project. I have 4 forms each having a back and next button. Each form allows users to input data. when the next or back button is pressed how do i get access to the same instance of the form? Currently, when back is pressed the data in the original form is loss?

    I would appreciate any help!

    Thanks,
  • teju
    New Member
    • Jul 2006
    • 34

    #2
    Originally posted by Ronnie5
    Hi,

    I am new to c# and need some help with my project. I have 4 forms each having a back and next button. Each form allows users to input data. when the next or back button is pressed how do i get access to the same instance of the form? Currently, when back is pressed the data in the original form is loss?

    I would appreciate any help!

    Thanks,
    Did you try the Enable view state property set to true

    Comment

    • radcaesar
      Recognized Expert Contributor
      • Sep 2006
      • 759

      #3
      Is it a web application ?

      Originally posted by Ronnie5
      Hi,

      I am new to c# and need some help with my project. I have 4 forms each having a back and next button. Each form allows users to input data. when the next or back button is pressed how do i get access to the same instance of the form? Currently, when back is pressed the data in the original form is loss?

      I would appreciate any help!

      Thanks,

      Comment

      • Ronnie5
        New Member
        • Jul 2007
        • 2

        #4
        Originally posted by radcaesar
        Is it a web application ?
        Its not a web app, its a windows desktop application, I've used the hide and show methods to display forms but I think this creates a new instance of the form what I need is a specific instance of the form with the data in it.

        I need the user to be able to press back and next between the 4 forms, accessing the original form with input data? Do I pass a reference of say form1 to the form2? but then if back is pressed how do I pass a reference form2 back to form1?

        Comment

        Working...