Calling Button object from another winform
Hi,
I need to know on how to disable a certain button in another form.
An illustration is something like:
Form1 - Button1
I am using Form2 to access Button1 object and calling a form within my Form2.
---
Form1 frm1 = new Form1();
frm1.button1.enabled = false;
---
That snippet above is not working. The button1 is not disabled.
Thanks.