Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MDI Child Forms Fighting For Control

Posted on 1998-11-25
2
Medium Priority
?
153 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 200 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
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…
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 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…
Suggested Courses

715 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