Embed Webpages into your program (1 Line of code to implement!) ((IE Only))

Submitted on: 1/7/2015 6:14:00 AM
By: Rabid Nerd Productions (from psc cd)  
Level: Beginner
User Rating: By 6 Users
Compatibility: VB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0, VB Script, ASP (Active Server Pages)
Views: 371
     It allows you to embed HTML documents into your software and create HTML documents on the fly, without needing a connection to the internet.. I think it's limited to IE. Also - I have not hit the upper limit of the about:HTML method. HOWEVER, you must URL ENCODE the CRLFs and Spaces. One last thing... You can not edit a page once you put it up using this method, but you could use a BeforeNavigate Sub to capture the URL the person clicked on and set variables that way..


Embedding HTML into VB

...and ANY URL without SCRIPT!

PSC Code 1320
Just replace the URL with the "about:HTML Code" or a string holding it like so:

HTMLString = "about:Planet Source Code"
Form1.WebBrowser1.Navigate HTMLString


Run a ShellExecute like the one at the code linked to above like this:

HTMLString = "about:Planet Source Code"
WebURL (HTMLString)

The first one launches the page in your WebBrowser control in your app, the second launches the default browser (though this only works in IE I think) with the code.

Just For Your Enjoyment:

There are hidden 'easter-egg' about codes in IE including:

Oops.. the next one messed up PSC's page at first:
about:<-- introducing the Trident team -->

Other 3 submission(s) by this author


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

 There are no comments on this submission.

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)

To post feedback, first please login.