Solved

MDI Child Forms Fighting For Control

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

710 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