Neven

Neven

  • NA
  • 16
  • 0

Accessing component from class

Mar 9 2010 7:58 AM
Hello I need some help... 

For example that I have main form called frmForm, and text box on it txtText. How can I change Text property of txtText from class clsClass.
I tried with, but it doesn't seems to be working :

class clsClass{

public void changeText(){

frmForm.txtText.Text = "Some text";

}}

It has to be non-value returning method (void);


Please help, thanks :)

Answers (4)