Re-Display a Windows Form Object

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've created an application in C# for a pocket PC. The application has
multiple full screen forms and allows user to navigate back and forth in a
sequencial pattern. At the end of the navigation, it has a finish button.
Once the finish button is clicked, it closes all form objects. Now, the user
would like to be able to select one of the forms that has been seen before
and see it again. I have saved all form objects that the user has selected,
but I've to 'new' it before I do the Show(). Since every form constructor has
different input argument, how could I book keeping these arguments and use
them when they are needed?

For example:

Form1(arg1, arg2, arg3)
{

}

Form2(arg1, arg2)
{

}

Form3(arg1)
{

}

etc.

Even I've saved the above objects in a hash table, i.e. "Form1, Form2,
Form3", but I don't know how to new them, i.e. Form1 frm1 = new Form1(arg1,
arg2, arg3) and etc, before I do the frm1.Show(). I didn't save arg1, arg2,
arg3. Any idea?
 
Back
Top