I am getting an "Object reference not set to an instance of an object" error on this code. I have searched the forums, but I cannot seem to find an example that is helping me. I am used to VB6, and trying to understand the basics of .NET
This is in a module, and there is a label on the frmMain called lblTestOutput
VB Code:
Public Sub MakeChanges() Dim f As New frmMain If f.lblTestOutput.Text = "" Then f.lblTestOutput.Text = "Button Pushed!" Else f.lblTestOutput.Text = "" End If End Sub
Also, I am wondering...
what is the correct way to load up a form using "Sub Main?"




Reply With Quote