开发者

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");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜