hi
I am using vb.net 2010 i set the main form as parent the problem when i close the main form its open the last closed child form before close the app i am using this code for open child forms
Dim FForm1 As New Form1
If Application.OpenForms().OfType(Of Form1).Any Then
Else
FForm1.MdiParent = Me
FForm1.Show()
End If
and i use msg for confirm close main form using this code
Select MessageBox.Show("exit ?", _
" confirm exit", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2, MessageBoxOptions.RightAlign)
Case Windows.Forms.DialogResult.Yes
Case Windows.Forms.DialogResult.No
e.Cancel = True
End Select
why its open the last closed child form before close the main form ?
Eskandrany
No comments:
Post a Comment