D
dave
Hi ,
I am trying to avoid behavior where everytime Button1Click is fired a new
form is exposed.
How can I keep the f object alive in the event so that a new object does not
have to be created?
Could I overload the Button Click event to accept the Form1 object?
void Button1Click(object sender, EventArgs e)
{
Form1 f = new Form1();
f.Show();
f.TextboxGet(this.textBox1.Text);
}
Thanks
D
I am trying to avoid behavior where everytime Button1Click is fired a new
form is exposed.
How can I keep the f object alive in the event so that a new object does not
have to be created?
Could I overload the Button Click event to accept the Form1 object?
void Button1Click(object sender, EventArgs e)
{
Form1 f = new Form1();
f.Show();
f.TextboxGet(this.textBox1.Text);
}
Thanks
D