mike parr's pages

Home

A Web Browser Project In Visual Basic.

Microsoft's Visual Studio has some powerful components, and here I use one in a simple HTML editor. It is meant as a VB project for a beginner, or someone learning raw HTML. We can type raw HTML code into the editor, and the equivalent HTML view is shown instantly in another window, with its fonts, layouts etc. Here is a screenshot:


Using a button for each function is unusual - I'm doing this so that you can see every function, and to simplify the creation of an initial version. This is easy to change later, if you wish.

It is intended as a little project for beginners to work on, and enhance. (Yes it does work, and I used it to create this page!). Below, there is a link to my VB code in a txt file. There is no instant gratification of an exe file - sorry!

The main steps are: Create the form, add code to the buttonclick events, add code to the textChanged event..

Create the Form

Add Code

In the same way that you did H1, add whichever buttons you need. The Load/save routines are a bit crude, but work. Ensure you save any text before quitting.

To enhance, you might want to: