Solved

Win98 SE Form Control Limit / Resource Limit

Posted on 2003-12-09
3
159 Views
Last Modified: 2010-05-01
Hello All!
This is my first posted question, so please bear with me...

I am developing an application in VB6.SP5 and have run into a problem.
The application installs and works correctly on XP/2000. It installs on Win98SE, but I've got a problem with one form.  When I attempt to open the particular form I get various Error Msg's, from Can't load User Control xxx to Out of Memory to Can't Autoredraw.  I've narrowed the problem down to too many controls on the form(there must be 300+)  When I remove 50 of my own controls (properly registered, they work fine on other forms and on this form in small numbers) the form loads properly.  

Question:  Am I running into a System Resource Limit under Win98 and if so, is there anything I can do to work around it?

Could it be my control (activex control I built) that, in large numbers (+100) causes the problem, or is it simply the TOTAL number of controls on the form?

What is the limit for Controls on a form in Win98se?

If necessary, I will glady purchase points and pay for a workaround.

Thanks!
0
Comment
Question by:jwbryant
[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
3 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 250 total points
ID: 9906092
I think the limit of Controls on a form is 255. You can put the controls into a control array. For example if you put 1 Textbox on a form called Text1 and set the index property to 0,you can add more Text1 controls and they will all count as 1 control.
0
 

Author Comment

by:jwbryant
ID: 9906482
vinnyd79,

Thanks!  I did read that the max control count in VB6 is 255.  I've got a form with 7 frames, each frame has between 20-30 controls.  One frame holds a Tab control with 5 tabs, and each tab has between 25 and 30 controls.  The controls are in control arrays as you suggest. So far, I only get the issue on Win98.

Thanks again!
0
 
LVL 27

Expert Comment

by:planocz
ID: 10234841
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
No response from jwbryant from 12/09/2003 comment
Award points to vinnyd79 is recommend.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

planocz
EE Cleanup Volunteer
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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 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…
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…
Suggested Courses
Course of the Month3 days, 13 hours left to enroll

630 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