Information générale
Titre:
Code to launch a form and pass a value from a grid?
Newbie here... Can someone give me some pointers (i.e. rough sample code in C#) on how you launch another form and pass one or more values to it?
For instance, I have a grid on a form that when the user double-clicks a cell, I want to launch a certain other form and pass the value of the cell they double-clicked. I know how to get the cell value and the double-click cell handler, I just need to know the code to launch the form, and how to deal with the passing of the value.
To elaborate, if they double-click on a cell in the customer number column, I will launch one certain form, and if they double-click on a cell in the vendor column, I will launch a different form, etc...
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement