D
Davis
Hi, I'm writing a little test app to simulate button clicks
to save me doing it myself. I've read the archives and easiest
way seems to be calling the event handler but i have a problem
Code below:
In my test harness i have
Form1 frm = new Form1();
frm.Show();
frm.button1_Click(this, EventArgs.Empty);
The problem i have is the button1_Click method is private in the class
i'm testing, how can i call my event handler. MouseEvent (another way of
doing all of this
seems to be overkill for what i'm trying to do).
Thanks
to save me doing it myself. I've read the archives and easiest
way seems to be calling the event handler but i have a problem
Code below:
In my test harness i have
Form1 frm = new Form1();
frm.Show();
frm.button1_Click(this, EventArgs.Empty);
The problem i have is the button1_Click method is private in the class
i'm testing, how can i call my event handler. MouseEvent (another way of
doing all of this
seems to be overkill for what i'm trying to do).
Thanks