Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a Class instead of a Form Reference?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Passing a Class instead of a Form Reference?
Divers
Thread ID:
00808596
Message ID:
00808596
Vues:
70
I have an interesting situation here that I need help on. This is a WinForm application. I wrote a base data lookup form with a grid and a few buttons on it. One of the button is "Modify". What I want to do is to have the "Modify" button popup the data edit form for that particular table. Currently I create an instance of the data edit form and pass a reference to a field of the data lookup form when I create the lookup form. However, if the user close the data edit form and then click "Modify" again. I get error because the object was closed and I try to show it again. I don't want to hide instead of close the form since I use this edit form somewhere else.

Is there a way to pass the class instead of the reference of this data edit form into the lookup form? This way I can create the form when the user click on "Modify" each time. In fact, I prefer to create the form only when the user click "Modify" since user only need to modify data once in a while.
Stephen Lee

--------------------------------
Too much to code
Too little time
--------------------------------
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform