|
-
Apr 15th, 2006, 02:33 AM
#1
Thread Starter
Addicted Member
[RESOLVED] how to open a URL in WebBrowser1 and hit stop before the page loads completely?
The WebBrowser1 control loads a given URL:
VB Code:
Private Sub Form_Load()
MyURL = "http://www.domain.com/file.html"
WebBrowser1.Navigate MyURL
End Sub
Now, the file.html contains too much junk (JavaScript, Flash, images, Iframes, etc) that I dont need to be loaded in WebBrowser1. Basically it will take too much time to load the file with all the stuff that comes with it. I can manually click a Command1 and stop the WebBrowser1 from loading it:
VB Code:
Private Sub Command1_Click()
WebBrowser1.Stop
End Sub
This gives me exactly what I want, just the file.html loaded into WebBrowser1. What I need is to automate the process without making the user click stop button whenever needed.
So, the big question is... Is there a way to load the file.html into WebBrowser1 without the images, sound, Flash, and everything else that might come with it, just the file itself?
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
|