|
-
Jun 27th, 2001, 11:32 AM
#1
Thread Starter
New Member
Shelling a hidden web page
I am having difficulties useing the shell command to run a hidden web page. I've tried:
Shell "start www.aol.com", vbHide
However, the web page opens and the user can see it, which is the opposite of my intended result.
I've considered using the inet control, but that would require an installation program for my program, which I would like to aviod if possible.
Any ideas, suggestions, or comments?
-
Jun 27th, 2001, 12:13 PM
#2
Frenzied Member
Try something like this. Keep in mind this will instance Internet Explorer, so users would need IE for it to work. Also notice I have IE.Visible = True commented out. If you want to see if everything is working then uncomment that line.
Code:
Dim WithEvents IE As InternetExplorer
Private Sub CommandButton1_Click()
'Reference the MS Internet control (dont add it to the controls)
'just do - Project -> References
Set IE = New InternetExplorer
'IE.Visible = True
IE.Navigate2 "http://www.vbforums.com/"
End Sub
'you will now find IE in the dropdown
Private Sub IE_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
If URL = "http://www.vbforums.com/" Then
MsgBox "its there!"
End Sub
-
Jun 27th, 2001, 03:51 PM
#3
Thread Starter
New Member
Thanks for the help. It is greatly appreciated.
Also, how can I tell if the person has Internet Explorer or not?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|