Наследование: System.Windows.Forms.Form
Пример #1
0
 public static string QueryString(string title, string text)
 {
     FormQueryString form = new FormQueryString();
     form.Text = title;
     form.edit.Text = text;
     if (form.ShowDialog(null) == System.Windows.Forms.DialogResult.OK)
         return form.edit.Text;
     return null;
 }
Пример #2
0
        public static string QueryString(string title, string text)
        {
            FormQueryString form = new FormQueryString();

            form.Text      = title;
            form.edit.Text = text;
            if (form.ShowDialog(null) == System.Windows.Forms.DialogResult.OK)
            {
                return(form.edit.Text);
            }
            return(null);
        }