How many controls?

  • Thread starter Thread starter Darren Gulliver
  • Start date Start date
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
 
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.
 
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
 
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
 
Back
Top