kind of a beginner question - how do i get Form1 to close itself after the user presses a "NEXT" button, and Form2 to open up. I would also like to send a parameter to Form2...
i would also appreciate advice on better ways of implementing the following:
in Form1 i ask the user to enter some info and then i do a query to the db to get the relevant matches. there could be multiple matches. i display those in a listbox. the user selects the one right match he wants and then clicks the "NEXT" button which is supposed to close Form1 and bring up Form2, while sending the info for the user's choice to Form2. Thus i was thinking of using listbox.selectedItem() to get the user choice and send it as a parameter to Form2... any better ideas of implementing the whole thing?
i would also appreciate advice on better ways of implementing the following:
in Form1 i ask the user to enter some info and then i do a query to the db to get the relevant matches. there could be multiple matches. i display those in a listbox. the user selects the one right match he wants and then clicks the "NEXT" button which is supposed to close Form1 and bring up Form2, while sending the info for the user's choice to Form2. Thus i was thinking of using listbox.selectedItem() to get the user choice and send it as a parameter to Form2... any better ideas of implementing the whole thing?