In VB6 there was an imposed limit of 255 controls (not counting arrays) that could be on a form. Is there the same limit in .NET?
Printable View
In VB6 there was an imposed limit of 255 controls (not counting arrays) that could be on a form. Is there the same limit in .NET?
Try it and report back to us....
This is insane . Don't even bother to think about it .;)
I've always wondered how the post counts get so high for some people...
I know this applies to the Compact Framework, but not sure about the full blown flavor. There is a limit to the number of controls on the form, but it's not a number, it's a memory limit - a list view may take up more memory than a text box. Can't remember what the memory limit is.
easily , like this ;)Quote:
Originally posted by Suidae
I've always wondered how the post counts get so high for some people...
check out msdn.microsoft.com. I'm looking now but I havent found anything yet.
posting teeny, tiny comments really DOES increase the post count :)
If you've got more than 255 controls on a form, i think you need a new form. ;)
I experianced the 255 limit in VB6. I fixed it by using control arrays (smart huh). But in VB.NET, the control arrays don't work the same. So if you have that many controls, you might want to break up the form into smaller pieces.
I realize 255 controls on a form is madness. Please... I was asked the question and was expected to find the answer.
Boss throws stick, I fetch it. I've gotten into a bad habit of paying the bills on time and can't seem to kick it.
As it turns out Mike was correct. There is no specific limit but it is related to memory, on one machine it would work and the next bomb out.
BTW - Thanks Mike you put me in the right direction!