BP Forums
HTML - Editor How to create "Preview in Webbrowser " Button - Printable Version

+- BP Forums (https://bpforums.info)
+-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55)
+--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56)
+---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8)
+---- Thread: HTML - Editor How to create "Preview in Webbrowser " Button (/showthread.php?tid=531)



HTML - Editor How to create "Preview in Webbrowser " Button - Himansh - 05-16-2012

HI Everybody
Sorry for my Late arrival
Actually i am currently creating a software HTML-Editor in visual basic
I have also added a button "Preview in Browser" in It

But i don't know how to code it so that the computer's default webbrowser opens the Html we have typed in Richtextbox1.text.

So i want to know How to code it

Thanks in ADVANCE!


Re: HTML - Editor How to create "Preview in Webbrowser " But - brandonio21 - 05-17-2012

Try something like this:

Code:
Dim writer as new StreamWriter("website.html")
writer.write(Richtextbox1.text)
Process.start("website.html")



Re: HTML - Editor How to create "Preview in Webbrowser " But - Himansh - 05-21-2012

Thanks Buddy
That was Really of Great HELP!!!!!!!!