Click here to Skip to main content
15,888,176 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Dear sir,

I am going to develop a small application of school or college by using VB.NET. I have already completed form design but when I click
on menuitem then loading MDI child form takes such a long time. How can I deduct or minimize time for loading MDI child form. There is no database connection or other things, only first test form design....
I heartily request...............
please......help me..................


Regards,
Sachin Sah
xxx@usnet.com.np
nepal,birgunj

TR: Removed the email address.
Posted
Updated 1-May-10 18:30pm
v4

No one can help you until you post some code here or tell us what type of processing you do while you load the mdi child form.
 
Share this answer
 
Often the constructor can be slow if its doing some work, particularly loading resources from files like images.

If you have added any controls to the form these need to be constructed too. One of them may be slow.

I would create an absolutely blank form and see how fast it loads, then i would slowly add your child controls back in to find the slow ones and then add the images and message strings (these get loaded from resource files too) to see how slow this makes the form load.

You could get a profiler and apply it to your app. ANTS will set you back about $500.

My copy of visual studio has a crap one.

Or you could look up the free microsoft "CLR profiler" but its more for memory usage than speed.

The other option is to output debug statements during the loading process and just grab DateTime.Now. i.e. in C# (i assume there is a VB equivalent)

Console.Writeline("Point 1 " + DateTime.Now.ToString());


... some code stuff happens here ...

MIDL
Console.Writeline("Point 2 " + DateTime.Now.ToString());


and view your Output window (CTRL+ALt+O) as the time statements come out.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900