I am currently designing a project with a windows form. I am also creating classes that I want to interact with this form. Instead of passing through the form to each object I create, is there a way to allow any class to interact with the form. This is mainly for debugging purposes, I only want access to the textboxes. At the moment I have to do this:
Dim x as new MyClass(Me)
where the me refers to the form I instantiate MyClass in. This means I need to assign a variable the form in the Sub New of the MyClass (creating a new instance of the form is not helpful). Within the class I access other classes. If there was a way to interact with my form without the need to constantly pass it forward, it would be great.
Thanks.