How to change the control property on another form?

  • Thread starter Thread starter Suresh Kumar
  • Start date Start date
S

Suresh Kumar

Hi,
I want to change the label button on one form from a Class? How do I do
that? I have made the property in the form to be public. But whenever I
close and open the file, it changes it back to private.

Thanks for the help.
Suresh
 
You can make an accessor property for the control

public label PublicLabel
{
get
{
return label1;
}
}

HTH
 
Back
Top