10
Answers

Calling Button object from another winform

sheen  buhay

sheen buhay

12y
2.4k
1
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.

Answers (10)