Hello, there are no errors in my project when in debug mode. When I switch it to release mode, I get a lot of "Reference to a non-shared member requires an object reference" errors.

My project has a main form (the form that is the startup form in the settings) and a few other forms. I make calls from the other forms to the main form, for example from Form2:

Code:
frmMain.Text = "TEST"
So I tried creating a class, and doing:

Code:
dim testshared as frmMain = frmMain
and then doing

Code:
SharedClass.testshared.Text = "TEST"
Yet then it gives me other errors. How do I do this without creating a new instance of the form? It is the startup form, so it seems ridiculous that I would have to have it load, then create a new instance of it, and then manage the reference to that instance.

Any help on solving this would be greatly appreciated.