Solved

MDI Child Forms Fighting For Control

Posted on 1998-11-25
2
150 Views
Last Modified: 2012-05-04
I have an MDI applications that has several MDIChild Forms, about 25. On occasion, if one of the MDIchild forms is currently active and another is called, it seems they fight for control.  At this point my user has to CTRL-ALT-DELETE.
This seems to be a problem that should never happen.  Any help out there.  This application is currently in VB4.
0
Comment
Question by:bnields
[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 4

Accepted Solution

by:
idcanada earned 50 total points
ID: 1446736


Ok,
you simply have too many controls on each of the forms.
The GDI resources left must be close to 0.

Here are a few tips on how to solve your problem.

1. If they use toolbars, create 1 on the MDI and work with it
upon the load event of your other forms.
You can easily add and remove the buttons needed.

2. 1 CommonDialog box will do for 1 application.
Call it from your form, you can easily change the behavior
during runtime.

3. 1 ImageList for your whole application is enough.
Print it if you have too... but as long as you know the number
of the image and where it is located, you should be fine.

Good Luck.

0
 

Author Comment

by:bnields
ID: 1446737
Thanks....how can I tell the GDI resources left?  But I will try your solutions.  
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…

735 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