|
-
Jan 4th, 2000, 11:54 AM
#1
Thread Starter
Member
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!!
-
Jan 4th, 2000, 02:11 PM
#2
Guru
If you ever hit the control limit on a form, you should take that as a hint to rethink your UI design
-
Jan 5th, 2000, 01:13 AM
#3
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
-
Jan 5th, 2000, 03:40 AM
#4
Thread Starter
Member
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.
-
Jan 5th, 2000, 04:39 AM
#5
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
[email protected]
[email protected]
-
Jan 5th, 2000, 07:28 AM
#6
Thread Starter
Member
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).]
-
Jan 5th, 2000, 07:46 AM
#7
Addicted Member
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
-
Jan 5th, 2000, 10:17 AM
#8
Thread Starter
Member
-
Jan 5th, 2000, 12:33 PM
#9
Thread Starter
Member
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
-
Jan 5th, 2000, 12:45 PM
#10
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
[email protected]
[email protected]
-
Jan 6th, 2000, 01:04 AM
#11
Thread Starter
Member
nenvermind, I used Aaron Young's method and now it works..
thanks a lot for all the replies.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|