Rajya
Member
Hi
In VB 6.0, if I needed to call a Form2 from a Form1, I just put in the following command in, say Form_Load of Form1 and it would work -
Private Sub Form_Load()
Form2.Show
End Sub
When I upgrade this project to VB.Net 2003, the same is upgraded without any issues as follows -
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Form2.DefInstance.Show()
End Sub
But when I am developing a native project/solution in VB.Net, I am not able to call the Form2 as I did it in VB 6.0; I know it is done differently here, but I am unable to figure out how.
Any help would be hugely appreciated
In VB 6.0, if I needed to call a Form2 from a Form1, I just put in the following command in, say Form_Load of Form1 and it would work -
Private Sub Form_Load()
Form2.Show
End Sub
When I upgrade this project to VB.Net 2003, the same is upgraded without any issues as follows -
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Form2.DefInstance.Show()
End Sub
But when I am developing a native project/solution in VB.Net, I am not able to call the Form2 as I did it in VB 6.0; I know it is done differently here, but I am unable to figure out how.
Any help would be hugely appreciated
Last edited: