In visual basic 6 I use a module to declare my public variables. Say in my module called modMain I have the following
Public strPartNumber as String
I initialize this variable in say Form1 as follows
strPartNumber = 45
I can access this value in Form2 by the foloowing code
txtPartNumber.Text = strPartNumber
How do I do the same thing in VB.Net? I am sure there are tons of way to do this, what is the most efficient way? I am thinking about declaring all my public variables in a class called cBaseForm. Code will also be helpful.
Public strPartNumber as String
I initialize this variable in say Form1 as follows
strPartNumber = 45
I can access this value in Form2 by the foloowing code
txtPartNumber.Text = strPartNumber
How do I do the same thing in VB.Net? I am sure there are tons of way to do this, what is the most efficient way? I am thinking about declaring all my public variables in a class called cBaseForm. Code will also be helpful.