Child Form - frmChildForm
however in my frmChildForm, i have a button to open another form - frmSpecial. In order to open frmSpecial in the frmMdiContainer (like a child like frmChildForm). This is what i did in my frmChildForm.
Expand|Select|Wrap|Line Numbers
- Dim frmSpecial AS SpecialForm
- frmSpecial.MdiParent = Me.MdiParent
- frmSpecial.WindowState = FormWindowState.Maximized
- frmSpecial.Show()
- ' More Codes to be executed after frmSpecial closes '
- MessageBox.show("frmSpecial shld be close")
- ' More Codes to be executed after frmSpecial closes '
How can I make the frmSpecial modal in the mdi container? showdialog() does not work. The messagebox shld pop up after i have close the frmSpecial. But currently it opens and closes itself immediately. I need the frmSpecial to stay open after frmSpecial.Show() as i need to fill up information in the form and use in my frmChildForm.