I have the following issue with a VB.net program I’m finishing off. Basically I have two forms. Form1 and techs. Form 1 loads first and is my ‘main’ page. I want to reference a variable in techs on Form1. I publicly declared this variable as so:
Public jobID As String
I then reference this on Form1 as so:
Dim job As String = techs.jobID
This is the error I am getting:
An error occurred creating the form. See Exception.InnerException for details. The error is: An error occurred creating the form. See Exception.InnerException for details. The error is: The form referred to itself during construction from a default instance, which led to infinite recursion. Within the Form's constructor refer to the form using 'Me.'
Can anyone give me an idea of what going wrong here?
try changing
to