|
-
November 12th, 2008, 11:16 PM
#1
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!
-
November 12th, 2008, 11:28 PM
#2
Re: showing a preview of the HTML?????help
you may use the webbrowser control.
Busy 
-
November 12th, 2008, 11:52 PM
#3
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
-
November 19th, 2008, 12:31 AM
#4
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
Busy 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|