I'm a still new to visual basic, and I've hit a problem
I can't find a workaround for.
I'm attempting to open and close an Internet Explorer window
using visual basic 6. I've got the open working properly,
but for some reason, I can't close the browser when I'm finished with
it.
Here's the code I'm using for opening and closing
================================================== ===
'setup for web popups
Dim oIE
Set oIE = CreateObject("InternetExplorer.Application")
' Open a URL upon command %
If Left$(CurrentCommandString, 1) = "%" Then
oIE.Visible = True
oIE.navigate Mid$(CurrentCommandString, 2, T - 2)
' Close the Internet Explorer window upon command
ElseIf Left$(CurrentCommandString, 2) = "@%" Then
oIE.Quit
oIE.Visible = False
Endif
================================================== ====
I've tried oIE.Quit, oIE.Visible=False nothing works,
unless I place the commands right after the open routine.
Can anyone assist?
Jeff
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----