Answer the question
In order to leave comments, you need to log in
How to access a form element from a class?
Good day.
I am using WinForms C#. There is label1 on the form, there is a separate class, suppose it is called Test.cs. How can I access Form1's label1.Text from this class (Test)?
Answer the question
In order to leave comments, you need to log in
have label1 set the access modifier public (for example) .... and contact.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question