Exceeding Max# of Controls on a Form?

  • Thread starter Thread starter Robert Lalouche
  • Start date Start date
R

Robert Lalouche

I have a form with many controls on each page of a tab control. I seem to
get an error related to too many controls, though the error doesn't say
that. Is there a max number of controls for a form, or for a tab page on a
tab control? If so, is there a work around? (like dynamically creating and
deleting)
Thanks

Robert Lalouche
 
Also consider that for every control you add the form designer adds a few
lines of code to InitializeComponent method. Since every method in CF must
be less than 64K of IL, it is possible that you are getting an error because
your code grows too large. The solution in this case is to split
InitializeComponent in two parts, although it will break code designer.
 
Hi Robert,

This FAQ item may shed some light on the subject for you. It is pretty
detailed.

4.10. I have a Smart Device form with a lot of controls. Why do I get a
"NotSupportedException" at runtime?
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx#4.10

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top