Hello,
To show a modal dialog use .showdialog
Code:
public string Show()
{
frmInputBox.ShowDialog();
return StringTypedByUser;
}
And to close your InputBox...
Code:
private void btnOK_Click(System.Object sender, System.EventArgs e)
{
frmInputBox.Close();
}