by Rabid Nerd Productions (4 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (6 Votes)
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!
by Herb Riede
You need either a WebBrowser control to use the Navigate/Navigate2 URL method, or use a shell execute method similar to the one at:
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
-or-
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:
about:mozilla
Oops.. the next one messed up PSC's page at first:
about:
No comments have been posted about Embed Webpages into your program (1 Line of code to implement) ((IE Only)). Why not be the first to post a comment about Embed Webpages into your program (1 Line of code to implement) ((IE Only)).