Windows Develop Bookmark and Share   
 index > Windows Forms General > Program Flow between forms
 

Program Flow between forms

Hi

I have a form with a button. Once the button is clicked another form opens with data retrieved from SQL in a datagridview.
MY problem is that once the first button is clicked I want the program flow to stop there in the first form, then the second form must open and once I close the 2nd form, the program flow must continue where it stopped in first form.
How do I do this? Current the 2nd form opens but the program flow continues in the first form as well.

Regards
Carlo
Stepcicc  Wednesday, October 01, 2008 2:00 PM
Use ShowDialog().
nobugz  Wednesday, October 01, 2008 3:51 PM
Use ShowDialog().
nobugz  Wednesday, October 01, 2008 3:51 PM

Hi Stepcicc

I want to know your problem more clearly.

What does “I want the program flow to stop there in the first form�mean?

What does “the program flow must continue where it stopped in first form�mean?

Sincerely,

Kira Qian

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Kira Qian  Friday, October 03, 2008 6:59 AM

We are changing the issue type to “Comment�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Thank you!

Best Regards

Kira Qian

Kira Qian  Tuesday, October 07, 2008 8:54 AM

You can use google to search for other answers

Custom Search

More Threads

• Extending a Form with Child Controls Results in improper control positioning
• Weird problem with a Panel and PictureBoxes
• Finding Image/Link Properties
• VB.Net - Radiobuttons in menu
• Messaging in Windows forms
• Listview doubleclick event not firing
• resize win form
• MS Access Within Windows FOrm?
• Multi language help please
• How to check if Visio 2003 is insalled on a client machine VB.NET??