CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2008
    Posts
    65

    Arrow 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!

  2. #2
    Join Date
    Jan 2003
    Location
    7,107 Islands
    Posts
    2,487

    Re: showing a preview of the HTML?????help

    you may use the webbrowser control.
    Busy

  3. #3
    Join Date
    Oct 2008
    Posts
    65

    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

  4. #4
    Join Date
    Jan 2003
    Location
    7,107 Islands
    Posts
    2,487

    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
  •  





Click Here to Expand Forum to Full Width

Featured