Windows Vista Forums

Can I code HTML code straight to Webbrowser control?
  1. #1


    ngrTerry Guest

    Can I code HTML code straight to Webbrowser control?

    I want to be able to write xml/html code from my application to then
    display into the webbrowser control in my application without having
    to save the details to a fila and then load it into the browser.

    Can this be done directly from code by passing a string with the page
    contents instead of passing a file to the url.

    The problem is that this application will run on users PC's which
    have been locked down so secure that not even cookies can be saved...
    let alone temporary files to the hard drive...
    So my only means of doing this is to write to a html output window and
    format my code as I pass it over.

    Any suggestions, tips and pointers would be very welcome indeed.
    Many Thanks in advance.



      My System SpecsSystem Spec

  2. #2


    ib.dangelmeyr Guest

    Re: Can I code HTML code straight to Webbrowser control?

    On Sep 22, 1:13*pm, ngrTerry <n...@newsgroup> wrote:

    > I want to be able to write xml/html code from my application to then
    > display into the webbrowser control in my application without having
    > to save the details to a fila and then load it into the browser.
    >
    > Can this be done directly from code by passing a string with the page
    > contents instead of passing a file to the url.
    >
    > The problem is that this application will run on users PC's which
    > have *been locked down so secure that not even cookies can be saved...
    > let alone temporary files to the hard drive...
    > So my only means of doing this is to write to a html output window and
    > format my code as I pass it over.
    >
    > Any suggestions, tips and pointers would be very welcome indeed.
    > Many Thanks in advance.
    how about

    webBrowserCtrl.DocumentText = "<html><body>Test</body></html>";

      My System SpecsSystem Spec

Can I code HTML code straight to Webbrowser control? problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
WLM messages sent to printer all print out the HTML source code dmarsh01 Live Mail 9 29 Mar 2010
Edit HTML code in forwarded messages TOF Live Mail 3 27 Jul 2009
Web Page Prints Out as Computer Code (HTML) in Internet Explorer 7 Eva Vista print fax & scan 0 14 Jul 2008
[ann] code sample to convert html to vb or vbs... mr_unreliable VB Script 0 07 Jul 2008
How to edit messages in html code like Outlook Espress? swallown Live Mail 3 18 May 2008