I found the following code from stackoverflow
It works correctly when I execute the MDIParent form as the first form in the project
For Each f As Form In Application.OpenForms
If TypeOf f Is Form1 Then
f.Activate()
Return
End If
Next
Dim myChild As New Form1
myChild.MdiParent = Me
myChild.Show()
I need to open the LOGIN form as the first form and open MDIParent.
If I open the login form as the first form the above code it not working.. Need a solution
I added this code to a button control