showing a preview of the HTML?????help
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!
Re: showing a preview of the HTML?????help
you may use the webbrowser control.
Re: showing a preview of the HTML?????help
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
Re: showing a preview of the HTML?????help
sorry for my late reply, been busy for the past few days.
Code:
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