Hey,
I am currently sitting at 5 Different forms: One for login, selection, new order and the main form.
Now, the information entered into login form and new order form need to be accessed in the main form. What I am doing right now is adding an overload to the new function, so in my Main Form I have this
and it is called like this
If I wanted to use properties instead, how would I go about that?
Should I create a new class with public property's in it? So when the Login is loaded a new instance of that class is created?
or should I create public property within the forms it self, so I would have a public property 'Name' in my login form, and access it via login.Name
I am currently sitting at 5 Different forms: One for login, selection, new order and the main form.
Now, the information entered into login form and new order form need to be accessed in the main form. What I am doing right now is adding an overload to the new function, so in my Main Form I have this
vb.net Code:
Public Sub New(filepath As String) ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. xmlpath = filepath End Sub
and it is called like this
vb.net Code:
Dim operation As New Form1(path)
If I wanted to use properties instead, how would I go about that?
Should I create a new class with public property's in it? So when the Login is loaded a new instance of that class is created?
or should I create public property within the forms it self, so I would have a public property 'Name' in my login form, and access it via login.Name