C# question:
I have a textBox in a default form Form1 and I want to access (write on) it from a constructor in another class that is in another different file. How can I do it?
Tx in advance,
Gerard
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to make a property in the
Form1class that exposes the textbox or itsTextproperty, then pass an instance of theForm1class to the constructor. (Or as astaticproeprty)