Adding too many control to panel control

V

vikash

Hi all,

in the C# windows application i am working now, i have created one User
Control. And in the panel control depeding on some conditions i am
dynamically adding lots of instance of My User control.

so may be my panel control is having the 100's of instance of the User
control.

But the problem is that, when the no of user controls added is too
much, the maximize and and minimize of my window becomes too slow

can any body help me out what can be the reason of the same
A quick and positve response will be highly obliged

Thanks
Vikash
 
H

Herfried K. Wagner [MVP]

in the C# windows application i am working now, i have created one User
Control. And in the panel control depeding on some conditions i am
dynamically adding lots of instance of My User control.

so may be my panel control is having the 100's of instance of the User
control.

But the problem is that, when the no of user controls added is too
much, the maximize and and minimize of my window becomes too slow

can any body help me out what can be the reason of the same
A quick and positve response will be highly obliged

Try to reduce the number of usercontrol instances, for example, by reusing
one usercontrol for multiple recordsets by filling it with the data of the
selected recodset.
 
V

vikash

Hi,

Thanks for the quick respose. But here the problem is that, the user
control that i m showing is some what the list of the data. and the
default Windows data grid does not have support lots of things in the
default way. and my list page is really very complecated once.

so i have create one user control for each row of the list page and
adding this row control for each row of the page.

Without modifying my existing design do u have any idea if i can get
rid of the problem which comes when i maximize / minimize my window??

Thanks
Vikash
 

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

Top