You have to create your own form and put a textbox and button in it.
and use ShowDialog() to display the form;
Example:
//assume the simple form class you created is called InputDialog
//and it has a property TextInput return what user enter in the text box
//create a instance of the form
InputDialog inputDialog = new InputDialog();
//display the form as a dialog of the main form
inputDialog.ShowDialog(this);
string userInput = inputDialog.TextInput;
cheers,
Ivan Wong
"James Alba" wrote:
Hi again all,
I was wondering if there was a simple built in dialog box that contained
only a textbox and an ok button? Just like the MessageBox.Show(...)
class/method.
Or do I have to make it "old school" and create it myself?
Does anyone have a premade simple one? or link to one?
Thanks heaps in advance.