loading a browser in a pane or the likes of it

I want to display a XML file similiar to how IE displays a XML with all the nodes viewable and expanded etc.

How can I do this in a windows form


Answer this question

loading a browser in a pane or the likes of it

  • Mathieu Descorbeth

    I was talking about an embedded browser

    Honestly, I don't know if you can send it just text or if you have to point it to a file.  Maybe someone else will know.  If I happen to have time this week, I'll play around with it.  Just look through all the available properties and see if anything looks likely.

  • techstudent26

    No easy way to place HTML directly into an embedded browser control. The most current code here on this site, however, wrote an HTML rendering control, which I'm guessing works a whole lot easier. Might be worth a look!

    Using the browser, you can fake it out if you control the pages to be displayed. You can use a DIV (or SPAN, I forget which) and can assign text into that. But as for the whole page, no, there's no way I know of to assign text directly into the control. I usually end up saving the content to a temp file and loading it from there. No elegant. If only you could load the browser control with data from a stream. That would be cool. 

  • haus_baus

    Erik,

    Ok that browser interop sounds good.  How could I launch and IE browser and pass in the HTML I want viewed in it   meaing I don't want to launch a browser to a specific file or url but pass in the html.  Or were you referring to imbedded browser

    either way, any code samples

  • Qwavel

    you can either custom bind your XML file to the a TreeView control  and style it how you want or just use the Web Browser Interop control (as in IE itself) in your WindowsForms app
  • loading a browser in a pane or the likes of it