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
Solved

ZOrder and MDI child forms

Posted on 2001-09-11
2
959 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
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

856 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