sheen  buhay

sheen buhay

  • NA
  • 8
  • 4.7k

Calling Button object from another winform

May 15 2012 5:19 AM
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)