Why can't I call another form's controls? Whether I use the singleton
method for my forms or not, I can't seem to call them. I just need to
change a label on another form before the form is shown yet I don't have
access to the label. Here's how I call the form:

frmAbout.GetInstance().Show();

Can anyone tell me what simple thing I am missing in order to access other
controls on other forms.

Thanks

Re: Calling form controls by Daniel

Daniel
Fri Nov 12 11:43:35 CST 2004

Are the controls on the other form declared as private (the default in C#)?
If they are. you have to change that to e.g. internal (which is the default
in VB)

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


"Aaron" <ABieberitz@charter.net> wrote in message
news:10p9tiv25o8plc3@corp.supernews.com...
> Why can't I call another form's controls? Whether I use the singleton
> method for my forms or not, I can't seem to call them. I just need to
> change a label on another form before the form is shown yet I don't have
> access to the label. Here's how I call the form:
>
> frmAbout.GetInstance().Show();
>
> Can anyone tell me what simple thing I am missing in order to access other
> controls on other forms.
>
> Thanks
>
>