Solved

ZOrder and MDI child forms

Posted on 2001-09-11
2
955 Views
Last Modified: 2007-11-27
Hi,

In my application I have an MDI form and 2 child forms with pictures. I'd like to have a few more forms that will effect the picture on the child forms (like colors, size etc.). I'd like to use the other form as regular- non-child forms, so that I can use MDIForm1.ActiveForm property, that will refer to ONLY one of the child forms. The problem is that even if I use ZOrder both for the parent MDI form (ZOrder 1) and the other regular forms (ZOrder 0), the MDI parent form covers the non-child forms.

How can I solve this problem? I want the non-child forms to be always on top of the MDI parent form, without being a child-form.

Thanks!
0
Comment
Question by:meravkn
2 Comments
 
LVL 3

Accepted Solution

by:
Bahnass earned 50 total points
Comment Utility
U may mean

frmPopup.Show vbModeless, Me ??
0
 
LVL 1

Author Comment

by:meravkn
Comment Utility
YES! only me should be in this case MDIForm1.

Thanks!

This is for future references, from MSDN:

The Show method has another optional argument, owner, that can be used to specify a parent-child relationship for a form. You can pass the name of a form to this argument to make that form the owner of the new form.

To display a form as a child of another form

Use the Show method with both style and owner arguments.
For example:

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

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.

Where in my case frmMain =  MDIForm1

Thanks!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now