We help IT Professionals succeed at work.
Get Started

For a windows form application how do I access the label control from a different class than the code hehind.

brgdotnet
brgdotnet asked
on
287 Views
Last Modified: 2012-06-21
I have written a Windows form application using .Net.
I have one web form so the application is pretty simple.  On the web form I have a lable control which I use to display status messages. I can update the label in the code behind file for my web form MainForm.cs

 The code behind for the web form MainForm.cs calls a C# class "Scoper". I would also like to be able to update the label control within that class. How can i do that since the label control can be accessed from the main form code behind file MainForm.cs . I just don't know how to get a handle on the label control from my class Scoper
Comment
Watch Question
Senior Engineer
CERTIFIED EXPERT
Top Expert 2010
Commented:
This problem has been solved!
Unlock 2 Answers and 2 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE