Customize FolderBrowseDialog .Net c#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alag20
    New Member
    • Apr 2007
    • 84

    Customize FolderBrowseDialog .Net c#

    Hi Guys,
    I am looking to add a few radio button at the bottom of FolderBrowseDia log in .Net. As it is a part of CommonDialog, then it should be easy to customize however I have never done this and having lots of problems with this.

    I would just like to have a usercontrol which appends to the bottom and i can design the usercontrol according to my wish.


    Please help guys - any example would be highly appreciated as this is urgent!!!!!
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    FolderBrowserDi alog is a sealed class. I don't think you can inherit from it.

    So I think this leaves you with making your own from scratch.

    Start with a UserControl.
    Add a TreeViewControl (this will hold your folder tree)
    Add buttons and radio dials as you describe you want.

    On opening, populate your TreeView with all the drives of your PC.
    On TreeNode.Expand read the folders for that drive and add them to the treeview. (this happens every time a TreeNode is expanded
    On Ok, return the path of the selected node or null if no node selected.

    Comment

    Working...