2
Contributors
2
Replies
5
Views
6 Years
Discussion Span
Last Post by faroukmuhammad
0

Using the owner argument with the Show method ensures that the dialog box will be minimized when it’s parent is minimized, or unloaded should the parent form be closed.

Using the Show method with both style and owner arguments.

For example:

' Display frmAbout as a modeless child of frmMain.
    frmAbout.Show vbModeless, frmMain
0

Does it work with MDI forms? i'm receiving error when i run the code. The error says, "Run-time error '5': Invalid procedure call or argument"

This is what i did;
1. I've an MDI form, named "fMainform"
2. Then I have another form, an MDIChild form, named "Form1"
3. on Form1 i have a button and in its event procedure i wrote;

Form2.show vbModeless, Form1
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.