Hi,
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
Hi,
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
You need to make a property in the Form1
class that exposes the textbox or its Text
property, then pass an instance of the Form1
class to the constructor. (Or as a static
proeprty)