troubleshooting Question

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

Avatar of brgdotnet
brgdotnetFlag for United States of America asked on
C#
2 Comments2 Solutions288 ViewsLast Modified:
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
ASKER CERTIFIED SOLUTION
Todd Gerbert
Senior Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2010

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 2 Answers and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros