By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,257 Members | 2,812 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,257 IT Pros & Developers. It's quick & easy.

Save HTML file to disk from webbrowser control

FullyH3ktik
P: 52
Sorry for posting the same question again but this is really urgent and it would be great if somebody could help me out. heres the problem:

I'm using Visual Basic 2005 Express Edition and I made a web browsing program,
I was wondering how you save the page that is displayed in the browser to a HTML file somewhere on the computer. but I also need the save file dialog box to come up

So if there are any experts out there that can help it would be much appreciated.
Sep 23 '07 #1
Share this Question
Share on Google+
3 Replies


Expert 5K+
P: 8,434
I'm pretty sure one of the properties of the webbrowser control gives you the complete HTML. Just open a text file and write it there, giving the file an HTM or HTML extension.

As for the save-file dialogue, in VB6 that would be done using the Microsoft Common Dialog control (added in project references) - not sure whether it's still the same in VB2005.

Oh, and by the way - a message title of "Urgent" won't get you more attention. Just the opposite, in fact. Most people will just skip over it on the list, because the title doesn't give any indication of what the message is about.
Sep 24 '07 #2

FullyH3ktik
P: 52
Thanks for that, I did manage to save the file with a HTML extension, but I cant work out how to save it through the dialog, none the less. at least I can get the document to save :)
Sep 24 '07 #3

Expert 5K+
P: 8,434
Thanks for that, I did manage to save the file with a HTML extension, but I cant work out how to save it through the dialog, none the less. at least I can get the document to save :)
As far as I'm aware, the dialogue doesn't actually have anything to do with loading or saving - it's just used to choose a filename. After that, what you do with the name is up to you.
Sep 24 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.