[2005] OpenFileDialog used to open directory...
Does anyone know of any good way to make the OpenFileDialog open a directory instead of the file? I've seen it done with many programs, but can't seem to figure it out.
And YES I do know about the FolderBrowserDialog control, but I HATE it's interface, and I want the user to be able to type in the path if they want to.
I've tried making an extended class... but with no luck.
Thanks :)
Re: [2005] OpenFileDialog used to open directory...
It was one of those, read better and wish there was a post delete, posts :/
Although I did find this article which may help or may not.
http://www.codeproject.com/cs/miscct...leDialogEx.asp
Re: [2005] OpenFileDialog used to open directory...
That is some help... I'll look into it deeper.
The main reason I want to be able to type the path in is because if it's a network share that requires a username and password, a windows prompt comes up and it basically does a "ghost" mapping (without a drive letter) to that share for later access. My main problem is that I couldn't find any information to do this prompting for credentials myself, so this is my only solution...
Re: [2005] OpenFileDialog used to open directory...
The usual solution is to create a textbox that allows the user to type in a path, with a "Browse" button to its right that invokes a FolderBrowserDialog.
Whilst you might dislike the interface of the dialog, I think it is advisable to accede to convention in such cases. Consistency is paramount in user interfaces; users tend to dislike applications that do not match the look and feel of the rest of the operating system.
Re: [2005] OpenFileDialog used to open directory...
Quote:
Originally Posted by zalez
All you have to do is click the Edit button next to your post to delete. Then select the radi0 button designating you want to delete and then click Delete, but only for members with 2048+ posts. :)
Re: [2005] OpenFileDialog used to open directory...
Thanks for the reply, penagate. The main problem I'm having with the browse folder dialog is that if the user types in the path (as you have said), I want a prompt to "silently" map that share for use until the computer is restarted (just like if you go Start > Run > \\pcname\share then type in credentials. That share will be accessible until you restart the computer, which is when you'll have to re-type the credentials. Any ideas to get THAT to work? Thanks :)