Click to See Complete Forum and Search --> : showing a preview of the HTML?????help


sacarias40
November 12th, 2008, 10:16 PM
ok i am making a simple HTML editor and i added a small feature that allows the user to click a preview button which opens up another form window that has a webpage object in it.

the problem is, how do i get the html text to show converted into the new webpage object on the second form window

please help, im making great advances because of youguys!!!!

regards!

Thread1
November 12th, 2008, 10:28 PM
you may use the webbrowser control.

sacarias40
November 12th, 2008, 10:52 PM
thats what i did but i need some help with the code.

i already have the code to open the other window,
but i need the code to actually send the HTML code from the project to the "preview window"

regards with any help thanks

Thread1
November 18th, 2008, 11:31 PM
sorry for my late reply, been busy for the past few days.


dim [frmPreview] as new frmPreview

[frmPreview].webBrowser1.Navigate("about:blank");
do until [frmPreview].webBrowser1.StatusText = "Done"
application.doevents()
loop

[frmPreview].webBrowser1.document.opennew(true)
[frmPreview].webBrowser1.document.write("<your html code here");

[frmPreview].showdialog(me);


hth