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:
So I tried creating a class, and doing:Code:frmMain.Text = "TEST"
and then doingCode:dim testshared as frmMain = frmMain
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.Code:SharedClass.testshared.Text = "TEST"
Any help on solving this would be greatly appreciated.




Reply With Quote
