wrote:
I have to load frmClientInfo into FrmMain from clsAction.
If you have to do this, you need references of
frmClientInfo
and
FrmMain
into
clsAction
class. Once you have references in the class, you can always set the MDIParent property on
frmClientInfo
.
To answer the second part, you can get list of all child forms from a MDI form. In that you can loop through the collection and check whether the type of the desired form is not equal to the one which is part of the loop. If the loop executes and you find that none of the forms match the desired form type, you are free to create a new instance of the desired form and display it. If you find that one of the forms has the type as that of the desired form, you just activate it and break the loop.
Hope you understood.