How to preview HTML in a windows form

I have a windows form a a textbox, the user can enter HTML in the textbox, what I want is to display the content of the textbox as HTML. How can you do this?
mousemat24Asked:
Who is Participating?
 
lazyberezovskyCommented:
Example:
webBrowser1.DocumentText = textBox1.Text;

Open in new window

0
 
Reza RadConsultant, TrainerCommented:
use WebBrowser control to show html form
0
 
mousemat24Author Commented:
to you have to use a URL for that? because i dont use http
0
 
Reza RadConsultant, TrainerCommented:
you should fill the DocumentText property with the string of textbox
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.