public new TextPromptResult ShowDialog() { result = new TextPromptResult(); this.StartPosition = FormStartPosition.CenterParent; this.Focus(); textBox1.Focus(); base.ShowDialog(); result.text = textBox1.Text; return result; }
private void okButton_Click(object sender, EventArgs e) { this.result.result = true; this.Close(); }
private void button1_Click(object sender, EventArgs e) { this.result.result = false; textBox1.Text = ""; this.Close(); }