Custom Dialog Box ... Wait for users input?
I have a custom dialog box that asks the user for some input. It's combined in a while loop.
Basically it takes a bunch of URL's from a text files, loops through them 1 by 1 and asks the user for their input.
The problem is at the moment is its looping through and showing the dialogs all at once. I want to be able to wait for the users input, w开发者_如何学编程hen they've pressed submit, continue through the loop onto the next one.
A little stuck.
You should use ShowDialog
.
You can use this method to display a modal dialog box in your application. When this method is called, the code following it is not executed until after the dialog box is closed.
For c# (Getal
is the name of the variable and the BoxTitle
the name of the Pop-Up).
private void enterGetalToolStripMenuItem-Click(object sender, EventArgs e);
Microsoft.Visualbasic.Interaction.Inputbox("Getal ?","BoxTitle","Default Text");
精彩评论