?
Solved

ZOrder and MDI child forms

Posted on 2001-09-11
2
Medium Priority
?
966 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
Bahnass earned 200 total points
ID: 6475403
U may mean

frmPopup.Show vbModeless, Me ??
0
 
LVL 1

Author Comment

by:meravkn
ID: 6475418
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

770 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