VB Module structure question
I am new to Vb.net and through a bunch of trolling the forums and trying out code I have come to the conclusion that using modules is quite a bit different in .net.
I am in the process of developing my first large vb.net project, learning as I go. Up to this point I have been writing all my code in the Main Form1.vb file. I decided to clean up my code a bit by pulling all the functions I wrote into a module. That seems fine except for the instances when I try to access a control on the main form. When I try to do that it errors. I spent the better part of the afternoon surfing forums and found this to be a topic of confusion for vb6 developers as it is a totally new concept.
I am not sure if I am correct or not, but from my understading if I wish to access a control on form1 from a function in module1 I first must create an instance of the form1 object within module that houses my functions.
Once I created an instance of the original form it no longer errors out, but no changes are reflected on the original form. This leads me to believe that I must now show the new form object I created through something along the lines of (frm1.show or frm1.showdialog) . Unfortunatly this does create a new form on the screen with the reflected changes, but the original is still there. I am sure I can figure out a way to destroy the original, I just can't believe there is not an easier way to access form controls from within a module without createing a new form every time.
I would love it if someone would help clear the concept of controlling form elements from a module or another form, here on these boards.
Thanks for your replies,
Toucan