[Message Deleted]
C#
3
Posts
3
Posters
0
Views
1
Watching
-
PS. Your question -and code which is not surrounded bu pre tags- is a bit vague. I'm taking guesses here. You don't need to call the event handler itself -though there are ways of doing it-. You can simply extract the code into a common method:
private void b1_Click()
{
MyMthod();
}private void MyMethod()
{
//Your code here
}Was that what you were looking for?
Regards:rose:
-
Maybe the
Button.PerformClick
method is what you're looking for.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook