Danny,
We created our own... this is a trivial to create in VWG. Just create a form yourself with two buttons and a text box.
In our case, the InputBox form has this code:
public partial class InputBox : Form
{
public InputBox(string Message, string HeadingText, string DefaultValue)
{
InitializeComponent();
this.btnCancel.BorderStyle = BorderStyle.FixedSingle;
this.btnCancel.BorderWidth = 1;
this.btnCancel.FlatStyle = FlatStyle.Flat;
this.btnOK.BorderStyle = BorderStyle.FixedSingle;
this.btnOK.BorderWidth = 1;
this.btnOK.FlatStyle = FlatStyle.Flat;
this.lblInstructions.Text = Message;
this.Text = HeadingText;
this.txtValue.Text = DefaultValue;
}
private void btnOK_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.OK;
this.Close();
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.txtValue.Text = "";
this.DialogResult = DialogResult.Cancel;
this.Close();
}
}
Then to use the inputbox, you just code this:
{
string NewFormName = "Form1";
InputBox oInputBox = new InputBox("Enter the name for the new form:"
, "New Form", NewFormName);
oInputBox.Closed += new System.EventHandler(this.NewFormNameInputBoxClosed);
oInputBox.ShowDialog();
}
private void NewFormNameInputBoxClosed(object sender, EventArgs e)
{
InputBox oInputBox = sender as InputBox;
if (oInputBox.txtValue.Text == "") return ;
// DO SOME MORE CODE HERE..
}
Mitch