Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slow loading classes
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00190249
Message ID:
00190274
Views:
17
> The class is instantiated from a pageframe. There are about 25 to 30 custom date controls, 15 to 20 combo boxes, 2 grids and 30 to 35 textboxes in this class.

Tony,

That is a lot of controls. I guess you have considered splitting this form up, but that is not an option?

Is this the first form that the application displays? If not, opening the tables up first in the startup of the application will help the speed of the form later.

The only other suggestion I can make will take a lot more work. I use the Mere Mortals framework and Oakleaf has written about dynamically adding controls. "It is a fact that forms that contain pageframes with many controls can take a long time to instantiate. One way to increase the speed is to delay instantiation of hidden controls until the page on which they reside is instantiated."

The idea is to put all the controls on each pageframe but the first into their own container class and remove the controls from the form. Then when the form loads only the controls on the first page are loaded. Then in the activate method of each page, you have code to add the container object for that page. It takes some work, but the performance difference is great.

Kind Regards,

Mat
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform