Mothra
Well-known member
I have an MDI app and heres what Im trying to do. I have a "search" form (well call it Form1 and the MDI Parent well call frmMain...) which gets search criteria from the user and displays the results in a DataGrid. When the user double-clicks the desired row of the DataGrid, I have annother form (Form2) open that allows the user to edit the information from the record. My problem is that I cant seem to get the MDIParent property of Form2 to set correctly. It opens just fine but not as a child form of frmMain. Is it even possible to do this??
The following code is what I have in Form1 and it does NOT work:
(note: in the following code wo is declared as Form2 earlier on...)
The following code is what I have in Form1 and it does NOT work:
(note: in the following code wo is declared as Form2 earlier on...)
Code:
Display the work order in the work order form
Dim main As frmMain
wo.MdiParent = main
wo.Show()