Kriti

Kriti

  • NA
  • 60
  • 0

How to access textbox/labels/combobox from another class.

May 10 2010 3:36 AM

I have two classes  test.cs and designTest.cs
In designTest.cs ,I have label1,textbox1,combobox1 etc.
In the test.cs,I want to write the code as
designTest dt=new designTest();
//label1.visible=true;
//textbox1.visible=true;
but the problem is that label1,textbox1 or combobox1 is not accessible.
How to make them accessible in test.cs?

Answers (2)