Solved

ZOrder and MDI child forms

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

932 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

12 Experts available now in Live!

Get 1:1 Help Now