|
|
Build your interface with HTML Pages:

Category:
GUI
API:
SendMessage
Use the facility of HTML pages to build creative interfaces for your VB
projects. You can build multiple skins for your project using HTML interface.
There are many technologies or methods to parse and use HTML files in Visual
basic. You can either import your own ActiveX control in HTML pages or use the
object "window.external" to communicate with your application using VBScript or
JavaScript.
In our example we will use a very simple and easy method using JavaScript:
1- You want to communicate with VB Application (send a message to run a
procedure)
2- Set the window's status bar (window.status='…') using JavaScript
3- Read the window's status bar from VB using the event
WebBrowser1_StatusTextChange
4- Recognize your message and do what your want to do!


|
|