limitaion of VB.NET

M

M

Microsoft lists the limitations in their documents of vb3-vb6 such as
maximum number of controls in a form.
But I cannot find it in VB.NET.

Recently I found I cannot add any more controls in a winform.(Such as
textbox ot label controls. this form already have thousands controls of
tabcontrols, textbox, Truedbgrid,...)
when I add one more textbox, and try to debug or build the application, It
stop at
InitializeComponent()
and show a message:
Title Microsoft Develoipment Environment
An unhandled exception of type'System.InvalidProgramException' occurred in
MyProgram.exe

Addtion information: Common Language Runtime detected a invalid program.

Any idea and help.

Thanks

Chen
 
C

Cor Ligthert

Chen,

In past has Nick (Nak) tried that in this newsgroup, there should be a as he
named it (a crapy) test program somewhere to Google, I thought that the
conclussion could be taken from that, that it was just more than you can use
in a normal environment.

Cor
 
H

Herfried K. Wagner [MVP]

M said:
Microsoft lists the limitations in their documents of vb3-vb6 such as
maximum number of controls in a form.
But I cannot find it in VB.NET.

There are no hardcoded limitations that you will reach in a normal
application, but there is a limitation in hardware resources. If a form
contains more than 50 controls, I would consider redesigning it.
 
B

Brian Henry

thousands of controls?! sheesh look into proper design of GUI's... 20 is
concidered a lot on a form
 
C

CJ Taylor

20???

Such as 10 labels and 10 textboxes?

Hell, 5 of them could be taken up by an address...
 
S

steve

??? address?
am i missing something?

my form has 20-30 controls. most of them very similar.
is there a shotcut I am not familiar with?
 
A

Alan LeHun

thousands of controls?! sheesh look into proper design of GUI's... 20 is
concidered a lot on a form


You missed a '0' at the end. You probably missed a '&H' at the begining.
You're still a little low.
 
M

M

When you are using tab control which has 5-10 pages and each page has 20-40
controls then it contain hundreds controls. If the tab contold contain
another tab then ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top