locked
.NET WinForm - How to bind TreeView to XML on internet? RRS feed

  • Question

  • Hi,

    I have help in my program which menu (TreeView) is bind to XML file on local PC. I try to make help also online and try to bind it from XML file stored on intranet - http://www.myproduct.com/help/menu.xml

    How can I make it happen?

    Thank you :)
    Thursday, September 3, 2009 5:16 PM

Answers

  • Hi,

    As far as I can see, it can not be bound directly , you might need to put the content of the file into a bindable object , and bind the menu to it.

    Harry
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Proposed as answer by Harry Zhu Thursday, September 10, 2009 6:06 AM
    • Marked as answer by Harry Zhu Monday, September 14, 2009 7:24 AM
    Monday, September 7, 2009 3:07 AM

All replies

  • Hi,

    As far as I can see, it can not be bound directly , you might need to put the content of the file into a bindable object , and bind the menu to it.

    Harry
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Proposed as answer by Harry Zhu Thursday, September 10, 2009 6:06 AM
    • Marked as answer by Harry Zhu Monday, September 14, 2009 7:24 AM
    Monday, September 7, 2009 3:07 AM
  • Thank you :)

    And how do I get this file? There is (I hardly remember, I used it several years ago) method how to download a file from internet. Or are there some "automatized" methods?

    Thanks again
    Saturday, September 19, 2009 7:59 AM
  • Hi,

    Please take a look at the article which shows how to download file from internet.

    http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=115

    Hope it will help,
    Harry
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Monday, September 21, 2009 2:33 AM