Windows Develop Bookmark and Share   
 index > Windows Forms General > loading a browser in a pane or the likes of it
 

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?
MigrationUser 1  Monday, April 28, 2003 11:03 AM
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
MigrationUser 1  Monday, April 28, 2003 2:50 PM
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?
MigrationUser 1  Monday, April 28, 2003 8:55 PM
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.
MigrationUser 1  Tuesday, April 29, 2003 12:28 AM
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. 
MigrationUser 1  Wednesday, April 30, 2003 7:59 PM

You can use google to search for other answers

Custom Search

More Threads

• Printing labels like in MS Word
• i need help in graphics
• bind DataRow[] to a checkedlistbox
• Selecting an AVI compressor without AVISaveOptions()
• set the border color of a label
• Listview columns
• String drawn on screen becomes more narrow than what is shown in other application like Notepad
• Searching through multiple RichTextBoxes
• Where is the C# Login form template in VS 2005
• Showing 2 individual windows simultaneously