Calling form controls

  • Thread starter Thread starter Daniel Moth
  • Start date Start date
D

Daniel Moth

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top