ViewHTMLNow: View HTML instantly in webBrowser Control
This is a little tool I wrote while programming hst2ve. Simply enter some text in the left textbox and it will instantly be displayed in the webbrowser window on the right.
This software is great for educational purposes or for demos: You instantly see the results while typing in HTML tags.

The core of this program is one simple event handler:
private void textBox1_TextChanged(object sender, EventArgs e)
{
webBrowser1.DocumentText = textBox1.Text;
}
Everytime you type something into the textbox the event will update the webBrowser control.
I added functionality to load and save files and to select the source code. Also I added the basic structure of a HTML file. Simply type in your HTML code and see what happens. You can also add CSS and Javascript.
This tool requires .NET-Framework 2.0
Read more:
- ViewHTMLNow is now “InstantHTML” – and it needs IE 7
- Using the SplitContainer in .NET
- Borderless Form replaces toolTip
- Copy bitmap to clipboard
- hst2ve: Display data from Garmin Forerunner Virtual Earth
May 7th, 2007 at 7:41 pm
Hello, I’m attempting to build a program to help my little brother learn html. I’ve been pounding my head for days trying to do just what you did with your ViewHTMLNow app. I have a tabbed form that has the textbox on the first tab, and the webbrowser control on the second. I had been searching trying to figure out how to display what was typed in the textbox in the browser control, and stumbled upon your solution. I tried the event handler you used, but it still didn’t work. Do have any thoughts? Or, could you provide your source, or the relevant code?
Thanks for any help you can provide,
Kevin Rodenhofer
May 8th, 2007 at 12:52 am
OK I got it to work. However, I still cannot get it to work in a tab control — tab 1 is textbox, tab 2 is webbrowser control. It would be awesome if you could help me out.
Thanks
April 29th, 2009 at 3:03 pm
nice program!
can you view or retrieve the source code (html codes) of a web page navigated? just like in the View > Source in Internet Explorer, the source code of the web page is written in notepad. How did that happen?
pls help! i’ve tried reading msdn but the topics is making me insane! (^^)
i’ll wait here or you can email me your answer @ shinagata@yahoo.com
Thankz! Happy Coding!