Solved

Win98 SE Form Control Limit / Resource Limit

Posted on 2003-12-09
3
154 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
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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using "ScreenUpdating" 6 65
vb6 - Transfer from MSHFlexgrid1 to xls issue 8 52
Added a column screws up code 5 57
Set email body to html using vbscript 6 41
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…

803 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