Hi,
Im trying to work out how I can access the origional startup form (MainMenu) variables. Normally to do this I would call an instance of a form as it had been created as a new form and had been given an id and the variable I want to access would be stored in a public declaired variable.
For instance when I want to access data from a form that I have opened from the main form, I would create the new form like this:
In that form I would have declaired a variable (and assigned a value to it) by doing this at the top of the form
and to access this variable from the origonal startup form I would use this
The problem is that I do not know how I can refer to a public variable in the default startup form(MainMenu) as I have not assigned it a name to make it show.
Can anyone help?
Im trying to work out how I can access the origional startup form (MainMenu) variables. Normally to do this I would call an instance of a form as it had been created as a new form and had been given an id and the variable I want to access would be stored in a public declaired variable.
For instance when I want to access data from a form that I have opened from the main form, I would create the new form like this:
Visual Basic:
Dim frmAccount As New Account()
frmAccount.Show()
In that form I would have declaired a variable (and assigned a value to it) by doing this at the top of the form
Visual Basic:
Public CLADBLocation As String
and to access this variable from the origonal startup form I would use this
Visual Basic:
myNewVariable = frmAccount.CLADBLocation
The problem is that I do not know how I can refer to a public variable in the default startup form(MainMenu) as I have not assigned it a name to make it show.
Can anyone help?