Loading form ¿? (RESOLVED)
Hi i have 2 forms "form1" and "MdiPrincipal"
In form1 i have a button when the user do a click the form1 must close and show the mdi
Code:
VB Code:
Private Sub CmdAceptar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdAceptar.Click
Dim Mdi As New MdiPrincipal
Mdi.Show()
'Mdi.Dispose()
Me.close()
but when i click the button it opens the mdi and then automatically closes
if i use it opens the Mdi but the form1 is already open :ehh:
if i use the form1 is invisible but is in memory... :sick:
I want to close the form1 and open the Mdi :confused: