Click to See Complete Forum and Search --> : Control Limit in VB??
madd indian
Jan 4th, 2000, 10:54 AM
I'm having a serious problem. I made a form that has two picture boxes. In one picture box there are going to be multiple frames which have a lot of textboxes and labels.
The other picture box will have buttons that will display the frames. Now after drawing two frames and putting all the controls in, it says I have hit the control limit for the form. How can I get rid of that?? This project is due on Jan 15th!!
Clunietp
Jan 4th, 2000, 01:11 PM
If you ever hit the control limit on a form, you should take that as a hint to rethink your UI design
MartinLiss
Jan 5th, 2000, 12:13 AM
You can get around your problem by creating control arrays rather than individual controls. No matter how many members there are in the control array, it only counts as 1 against the limit (which is 254).
------------------
Marty
madd indian
Jan 5th, 2000, 02:40 AM
actually I did use Control arrays now and have bypassed that limit until I had three tax forms in there.
My first version had MDIforms and Child Forms, but I wanted a way to have a toolbar on the side with buttons so if hte person pressed a button on it, it would show the taxform on the right. Similar to this site where I have a frame on the left which has the contents and a frame on the right which shows the main info.
If there is a way to do this with multiple forms please let me know.
Aaron Young
Jan 5th, 2000, 03:39 AM
Add a Picturebox with Buttons or a Toolbar to the MDI Parent Form, with Alignment set to Left Align, then on Each Button Click Event Show the Corresponding Child Form Maximized.
------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
ajyoung@pressenter.com
madd indian
Jan 5th, 2000, 06:28 AM
that's a good idea..
How do I make a toolbar in VB?
[This message has been edited by madd indian (edited 01-05-2000).]
XxEvilxX
Jan 5th, 2000, 06:46 AM
why dont you just hafve 2 forms that look like one and have buttons and that on one form and the other stuff on the other form like a web page look do that
madd indian
Jan 5th, 2000, 09:17 AM
that would take to long.
madd indian
Jan 5th, 2000, 11:33 AM
well it's a good design...each frame contains a tax form, and all the frames are hidden until the user clicks a button which will display the tax form.
It's not messy or anything, i don't have controls all over the place.
Anyway does anyone know how to get rid of hte control limit?
PS: My project is to make a tax program
Aaron Young
Jan 5th, 2000, 11:45 AM
I'm not sure there is a way around the Control Limit for a Form, besides having that many controls on a Form has got to affect performance.
We have produced Taxform software here and we did it by using an MDIForm with MDIChild Forms for Each Taxform, that way you shouldn't get anywhere near the Control Limit for each Child Form.
------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
ajyoung@pressenter.com
madd indian
Jan 6th, 2000, 12:04 AM
nenvermind, I used Aaron Young's method and now it works..
thanks a lot for all the replies.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.