I am starting a .Net program which is a WIndows Form application. I have one form with three parts to it (treeview, tab control, data grid). The form is its own class of course so I have code to handle the various events I want to deal with. I then added a Module to do some of the housekeeping. How do I refer to the form (and its controls) from within the Module? I've done this with Excel VBA but don't know the right method for .Net environment.Something like this:
<pre>public class fMain
' code with events for form fMain
me.trVariables.blah.blah ' sample, talk to tree view control
end class</pre>
<pre>Module Util
' code to read/write to pieces of the form (tabbed control and data grid mostly)
THE_FORM.what.what ' method to talk to the form fMain THE MISSING LINK!
end Module</pre>
From the Module I want to write code to populate the various fields of the tab control based on various user actions. I know I could put all the code i the form class but that's not exactly good style (90% of my program would be in this class if I did it that way *ha*). I'm very familiar with C/C++ and classes and all that stuff but am stuck on the proper methodology for .Net
Thnx, Deb



