Changing directory in Open File Dialog programatically.

Posted by ofarooq on Stack Overflow See other posts from Stack Overflow or by ofarooq
Published on 2010-05-03T07:33:15Z Indexed on 2010/05/03 7:38 UTC
Read the original article Hit count: 331

Filed under:
|
|

Hi All,

I have a customized OpenFileDialog (VS2008, C#, Windows Forms) with a ComboBox. The ComboBox will have a list of paths which the user can select.

My question, is there a way I can change the directory in Open File Dialog to point to the path in the combobox selected item.

InitialDirectory works only before I open the dialog, I wanted a way to change the directory programatically after the dialog is open.

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about windows-forms