public static bool InputBox(string Title,string Text,ref string Input) { fmInput fm=new fmInput(); fm.lbText.Text=Text; fm.Text=Title; fm.edInput.Text = Input; bool bl=fm.ShowDialog()==DialogResult.OK; if (bl) Input = fm.edInput.Text; fm.Dispose(); return bl; }
public static bool InputBox(string Title, string Text, ref string Input) { fmInput fm = new fmInput(); fm.lbText.Text = Text; fm.Text = Title; fm.edInput.Text = Input; bool bl = fm.ShowDialog() == DialogResult.OK; if (bl) { Input = fm.edInput.Text; } fm.Dispose(); return(bl); }