Max number of controls per form......

Reply

Join Date: Mar 2005
Posts: 32
Reputation: MrConfused is an unknown quantity at this point 
Solved Threads: 0
MrConfused MrConfused is offline Offline
Light Poster

Max number of controls per form......

 
0
  #1
May 13th, 2005
I use VB5 and I have a form which has very close to VB 5's limit of 255 controls per form which is starting to concern me. Can someone tell me if the limit for VB6 was increased and let's not forget VB net if possible (although changing the code to suit VB net sounds like a nightmare).

Thanks.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Max number of controls per form......

 
0
  #2
May 14th, 2005
The limit is also stillin place on VB6, I have no idea about .net, but I knew for certain that vb6 has that control limit in place (I just clicked about 255 times, on the toolbar to add a button). At button caption 254, I was told it couldn't add any more.
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 32
Reputation: MrConfused is an unknown quantity at this point 
Solved Threads: 0
MrConfused MrConfused is offline Offline
Light Poster

Re: Max number of controls per form......

 
0
  #3
May 17th, 2005
Thanks. I'm surprised it was not increased. It seems a lot when you start, but I want the user to be able to do as many things as possible whilst in the one form. There are many ways to tackle the problem all of which make everything more difficult! Oh well......
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Max number of controls per form......

 
0
  #4
May 17th, 2005
One thing I have NOT tried, and I will when I get home from work is to see if you put them in a frame (container) or a tabbed dialog control if it will hold more, since the tabbed dialog control or the frame should be considered the parent.... it might allow for more than 254 per form, but limited to 254 frames or tabs, know what I mean?
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 32
Reputation: MrConfused is an unknown quantity at this point 
Solved Threads: 0
MrConfused MrConfused is offline Offline
Light Poster

Re: Max number of controls per form......

 
0
  #5
May 17th, 2005
Originally Posted by Comatose
One thing I have NOT tried, and I will when I get home from work is to see if you put them in a frame (container) or a tabbed dialog control if it will hold more, since the tabbed dialog control or the frame should be considered the parent.... it might allow for more than 254 per form, but limited to 254 frames or tabs, know what I mean?
I just tried your idea. I created 253 Label controls. Then I created a frame taking the total to 254. I tried to add a label in the frame. No go. Worth checking out though. I don't know what a tabbed dialog control is! Maybe is is not with my version of VB (VB 5 learning edition).

I know you can redefine some of the controls as a control arrays. I have just been checking this out and it seems easier than I had thought.

Thanks.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Max number of controls per form......

 
0
  #6
May 17th, 2005
Control arrays are a breeze. The tabbed control I think is sp3 of VB6... I could be mistaken, but I think so. Control arrays are nothing more than controls of the same name with a different index. It really makes processing textboxes a lot easier too, so you can do something like:

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. for I = 0 to textboxname.count -1
  2. textboxname(I).text = vbnullstring
  3. next I

I'll try it with the tabbed control when I get home (if I remember), but it seems the frame won't work
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC