Controls in form

  • Thread starter Thread starter Mats Boberg
  • Start date Start date
M

Mats Boberg

Hi,

I converting a paper servicereport to a pocket pc form.

I get a unknown exception when the controls on the form gets over a certan
amount. Is there really a limit how many labels, textboxes and checkboxes
you can have in a form? The exception occurs when the form has about 150
controls. The compilation works fine...

--
Mats Boberg

Regfellow
Kattsundsgatan 12:5tr
21126 Malmö

Tele: 040 611 48 20
Mob: 070 486 87 57
 
Thanx for the fast answer.

I just found out that i only get the exception in the emulator. As a release
deployed in pocket pc it still works. I hope all fields in the report will
fit without splitting them up in diffrent forms. The application loads in
3-5 sec, so its not really a problem yet.

/Mats.
 
You can manually reduce the number of method calls in the
InitializeComponent method by changing loc and size assignments to bounds
pairs. This may be enough to solve your problem.

If you don't want to do this manually, we created a VS add-in that does this
and other CF code optimizations for $23.95 at
http://www.mrgsoft.com/products/ICO/


Justin Weinberg
 

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

Back
Top