Solved

MDI Child Forms Fighting For Control

Posted on 1998-11-25
2
148 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
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…

778 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