R
Rob
Can you store "public" variables that may be accessed from anywhere and
still have a Form (not SubMain) as the designated startup object ?
For example.... let's say I want all the form's Text property equal to
"Program Name and Version"
In a public class I tried....
Public Class SomeVariables
Public strProgNameVer as String = "My Name"
End Class
On the load of Form1 I placed
Me.Text = strProgNameVer
Nothing appeared in the text property of the form AND the program did not
crash due to lack of a declaration of strProgNameVer.
I kind of expected one or the other... either see the text, or crash due to
errror...
Thanks !
still have a Form (not SubMain) as the designated startup object ?
For example.... let's say I want all the form's Text property equal to
"Program Name and Version"
In a public class I tried....
Public Class SomeVariables
Public strProgNameVer as String = "My Name"
End Class
On the load of Form1 I placed
Me.Text = strProgNameVer
Nothing appeared in the text property of the form AND the program did not
crash due to lack of a declaration of strProgNameVer.
I kind of expected one or the other... either see the text, or crash due to
errror...
Thanks !