How many controls?

D

Darren Gulliver

Hi,

Is there a limitation on how many controls can be displayed on a windows
form?
Currently I'm still using VB6 of which only 255 controls are allowed on a
form.

My company is looking to go over to .net for support reseasons.

Cheers
Darren
 
H

Herfried K. Wagner [MVP]

Darren Gulliver said:
Is there a limitation on how many controls can be displayed on a windows
form?

Yes, but in practice this should not be a problem.
Currently I'm still using VB6 of which only 255 controls are allowed on a
form.

I suggest to rethink the user interface design. Forms showing more than a
couple of controls overload the user. Maybe there is a better way to
visually organize your form.
 
A

Alun Harford

Darren said:
Hi,

Is there a limitation on how many controls can be displayed on a windows
form?
Currently I'm still using VB6 of which only 255 controls are allowed on a
form.

Yes, you can use more than 255 controls on a form in .NET

However, nobody in their right mind would want to. If you're using more
than 255 controls on a form, take a long hard look at your design.

Alun Harford
 
D

Darren Gulliver

Thanks Alun,

I try and use Control Arrays and use Tabs so its not so bad for the user.
It;s good too know there is no restriction in .Net.

Thanks
Darren
 

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

Similar Threads


Top