Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
Luiz,
This is a really ambiguous question that I cannot give you a "magic" answer on. We have an extremely massive medical application and it is snappy and paints great. But the issue with WinForms is that each control has its own handle and renders itself, also if you are using a lot of automatic population within the same dialog and making a lot of trips back to the server, this too can slow down instantiation. So my point it, you need to isolate where your performance issue lies. If you remove any pre-loading or data population logic, does it speed up? If so, then you need to create a sproc to make one trip instead of a lot of trips. Do you have custom controls running on the screen? How many controls do you have packed into a single page or panel at any one time? These are all questions that you should ask yourself when working through a problem like this.
We have one dialog with close to a thousand controls once all of the pages are loaded. But instead of putting them all in a single class, we created a user control for each page then programmatically added the page as needed versus just being on the dialog all the time since it may not always be used. We also use child dialogs when necessary, etc. So like I said, there is not nearly enough information for us to work off of here and this is highly influenced by your screen design. Hope some of these ideas help.
|