O
OC
I would like to trigger another event from within an event that is specific
to a forms state at the time of the original event.
Is this possible?
to a forms state at the time of the original event.
Is this possible?
OC said:I would like to trigger another event from within an event that is specific
to a forms state at the time of the original event.
Is this possible?
Kirk Graves said:Sure. For instance, lets say you want to fire the click event for button2
from the click event for button1 you could do this:
-------------------------
private void button1_Click(object sender, System.EventArgs e)
{
button2_Click(this.button2,e);
}
------------------------
or, to be a little more honest, you could do this this way
------------------------
private void button1_Click(object sender, System.EventArgs e)
{
button2_Click(sender,e);
}
-----------------------