473,804 Members | 2,101 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Maximum number of controls in a form

M

There are a maximum number of controls can be put in a form for VB3 to VB6.
The BOL of VBNET do not say VBNET also has this limitation.

Because the clients want add more functions from time to time.
I find one of the form reach the maximum number of controls.
If I add one more control in this form, the program will get error at
InitializeCompo nent.

Are anyone find similar situation

Thanks


May 17 '06 #1
5 2614
you are only limited by the amount of available memory or 32K child
controls, whichever is less.

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

"M" <mx****@hotvoic e.com> wrote in message
news:uq******** ******@TK2MSFTN GP02.phx.gbl...

There are a maximum number of controls can be put in a form for VB3 to
VB6.
The BOL of VBNET do not say VBNET also has this limitation.

Because the clients want add more functions from time to time.
I find one of the form reach the maximum number of controls.
If I add one more control in this form, the program will get error at
InitializeCompo nent.

Are anyone find similar situation

Thanks

May 17 '06 #2
"M" <mx****@hotvoic e.com> schrieb:
There are a maximum number of controls can be put in a form for VB3 to
VB6.
The BOL of VBNET do not say VBNET also has this limitation.
Basically there is no such strict limit as in VB6. However, the number of
controls on a form is limited by memory and other factors.
Because the clients want add more functions from time to time.
I find one of the form reach the maximum number of controls.
If I add one more control in this form, the program will get error at
InitializeCompo nent.


What's the exact error message? Maybe it's time to refactor the user
interface and split up the huge form.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

May 17 '06 #3
M,

We did some years ago a test in this newsgroup about how many controls where
possible.

The used number was so high that it would never be possible to put those in
a reasonable way on a form.

I hope this helps,

Cor

"M" <mx****@hotvoic e.com> schreef in bericht
news:uq******** ******@TK2MSFTN GP02.phx.gbl...

There are a maximum number of controls can be put in a form for VB3 to
VB6.
The BOL of VBNET do not say VBNET also has this limitation.

Because the clients want add more functions from time to time.
I find one of the form reach the maximum number of controls.
If I add one more control in this form, the program will get error at
InitializeCompo nent.

Are anyone find similar situation

Thanks

May 18 '06 #4
M

Thanks.
But where do you find the 32K.
There are thousands controls in the form but I believed no reach 32K

"vbnetdev" <vb******@commu nity.nospam> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..

you are only limited by the amount of available memory or 32K child
controls, whichever is less.

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

"M" <mx****@hotvoic e.com> wrote in message
news:uq******** ******@TK2MSFTN GP02.phx.gbl...

There are a maximum number of controls can be put in a form for VB3 to
VB6.
The BOL of VBNET do not say VBNET also has this limitation.

Because the clients want add more functions from time to time.
I find one of the form reach the maximum number of controls.
If I add one more control in this form, the program will get error at
InitializeCompo nent.

Are anyone find similar situation

Thanks



May 18 '06 #5
"M" <mx****@hotvoic e.com> schrieb:
But where do you find the 32K.
There are thousands controls in the form but I believed no reach 32K


Really bad. I am wondering which controls you are using on the form. Maybe
some static controls such as labels and pictureboxes can be replaced by
drawing the text onto the form directly in its overridden 'OnPaint' method.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

May 18 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3296
by: Dan Flynn | last post by:
I am working on a project that requires me to check the number of rows in a table with the same HTML "ID" value. I do this in my code with: i = document.all(rowid).length However, if the number of rows with the same ID is greater than 8, it always returns 8 (not 9, 10, etc.)
6
1874
by: Steve McLellan | last post by:
Hi, Does anyone know how Windows allocates memory for controls? For example, given a huge Panel, say, in a relatively much smaller Form with scrollbars, will Windows attempt to allocate a huge area of memory for the Panel's visible surface, or will it only allocate as much as is required (i.e. as much as is visible)? If the former, is there any way of preventing this? Like telling it that at this point in time, only X amount of the...
2
28604
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
15
12141
by: Lauren Wilson | last post by:
Access 2K dim MyStr as string What is the maximum amount of text or bytes that this variable can store? Does anyone know?
11
3155
by: ian.davies52 | last post by:
Is there anything I can do about the apparent limit on the number of textboxes that have calculations as their control source on a form or report in ms-access? I have a query that pulls together all the fields from two tables, each with about 20 fields. I then have a statistics form that has the query as its source and the form has 273 textboxes on, each with a calculation based on the underlying query values. The form looks like a...
3
11861
by: Hal Gibson | last post by:
What is maximum number of controls allowed on .Net Windows Form? I know it's 254 in VB6.
29
5121
by: garyusenet | last post by:
I'm trying to investigate the maximum size of different variable types. I'm using INT as my starting variable for exploration. I know that the maximum number that the int variable can take is: 65,535. But i'm trying to write a program to test this, assuming I didn't know this number in advance. I came up with the following but have two questions. Maybe someone can help? using System; using System.Collections.Generic; using System.Text;
2
4276
by: Wayne | last post by:
Is there a "best practice" maximum number of controls that can be loaded on to a tab control before things start getting messy and sluggish? I'm asking for a "best practice" maximum number across all tabs and not the maximum number that is theoretically possible. I figure that trying to add lots of controls to lots of tabs must affect performance at some point. Any help is appreciated.
6
10710
by: =?Utf-8?B?U2hhcm9u?= | last post by:
I'm using the VScrollBar and set it as follow: m_vScrollBar.Minimum = -19602; m_vScrollBar.Maximum = 0; m_vScrollBar.SmallChange = 1; m_vScrollBar.LargeChange = 1089; m_vScrollBar.Value = m_vScrollBar.Maximum; The scroll bar is set to start from the bottom.
0
9714
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10351
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10096
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6866
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3834
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.