I referenced SHDocVw.InternetExplorer. Now when I close my appy, it takes about 20 seconds to unload. I don't have any big close code or anything, and I don't want to try End because its not safe. Any suggestions?
Printable View
I referenced SHDocVw.InternetExplorer. Now when I close my appy, it takes about 20 seconds to unload. I don't have any big close code or anything, and I don't want to try End because its not safe. Any suggestions?
have you tried setting anything that relates to SHDocVw.InternetExplorer , to Nothing ? before unloading.
You mean like Form_Closing or Form_Closed? I tried, and even before the form would unload I would set it to nothing, but its still hangs when it closes.
I dunno what to do. maybe I should try End
dont use " End " , it's pretty bad to do.
if you dont wish to use Close() , try Application.Exit()
by the way , are you using " Me.Close() "? because you could also try MyBase.Close() .
Me can sometimes refer to a particular control , rather than your form.
nope.
The problem seems that when I use the New keyword on SHDocVw, it takes long. Without the New keyword, I will get "Object not set to an instance of an Object" Error. what to do....