Solved

MDI Child Forms Fighting For Control

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

706 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

15 Experts available now in Live!

Get 1:1 Help Now