I am running VB .NET 2003 Standard. I have a project that has several forms and I need to move from form to form in a natural flow. When I want to open a new form I use the code:
Dim oForm As frmNewForm1
oForm = New frmNewForm1
oForm.Show()
oForm = Nothing
When that is executed the new form (frmNewForm1) will be shown and there will be two open forms. If I want to open another form I go through the same routine for frmNewForm2, then there will be three open forms.
The only way I know how to close any of those forms is through the me.close method while I am "in" a form.
My question is, "How can I close a form from another form?"
Thanks.
Dim oForm As frmNewForm1
oForm = New frmNewForm1
oForm.Show()
oForm = Nothing
When that is executed the new form (frmNewForm1) will be shown and there will be two open forms. If I want to open another form I go through the same routine for frmNewForm2, then there will be three open forms.
The only way I know how to close any of those forms is through the me.close method while I am "in" a form.
My question is, "How can I close a form from another form?"
Thanks.