How to call User Control's button's PerformClick() method

  • Thread starter Thread starter Jeff0803
  • Start date Start date
J

Jeff0803

Guest
I made a User Control(myUserControl) and use from Form1.

This User Control has a button control(bttn1) which is public.

I set User Control's modifier as public from Form1.

I tried to run Form1.myUserControl.bttn1.PerformClick() but can't see myUserControl's attributes at all even though bttn1 is public.

Can anybody give me some idea?

(I'm using WinForm, not WPF)

Continue reading...
 
Back
Top