Question Why is the ShowDialog method so slow?

frogitts

New member
Joined
Feb 9, 2010
Messages
3
Programming Experience
Beginner
So this is the code I'm working with:
VB.NET:
dlgresult3 = MainWindow.OpenFileDialog1.ShowDialog()
MsgBox("Done")

It takes about 1-2 seconds for the dialog to fully open, which is about normal for my desktop (running windows 7). What I'm more concerned about is that on a cold start, when I select a file and hit "Open", it takes around 4-5 seconds for this line to finish executing before the MsgBox displays. However, when I open the same file again, there's almost no delay. Why is this and how can I fix it?
 
Back
Top