folderbrowserdialog

How do I present an open folder selection dialog in Perl?

南笙酒味 提交于 2020-01-01 06:28:46
问题 How do I open folder selection dialog in Perl? 回答1: Depends on the GUI system you're using, and perhaps the platform. For example, on Windows and using Win32::GUI , you can use GetOpenFileName : # $main is your main window... $my_file = $main->GetOpenFileName( -title => 'Select a file...', -file => 'default.file', ); 回答2: Most portable (at least compared to others): use Tk; my $dir = Tk::MainWindow->new->chooseDirectory; Of course, if you're actually using Tk in the rest of your program, you

How do I present an open folder selection dialog in Perl?

喜夏-厌秋 提交于 2020-01-01 06:28:28
问题 How do I open folder selection dialog in Perl? 回答1: Depends on the GUI system you're using, and perhaps the platform. For example, on Windows and using Win32::GUI , you can use GetOpenFileName : # $main is your main window... $my_file = $main->GetOpenFileName( -title => 'Select a file...', -file => 'default.file', ); 回答2: Most portable (at least compared to others): use Tk; my $dir = Tk::MainWindow->new->chooseDirectory; Of course, if you're actually using Tk in the rest of your program, you

Alternative to FolderBrowserDialog [closed]

谁都会走 提交于 2019-12-29 05:13:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 months ago . Is there an alternative for selecting folders in C#? Optimally I'd like to use the OpenFileDialog to select folders, or at least something similar to that. 回答1: Here you have and OpenFileOrFolder dialog and here another FolderBrowserDialog both Open Source. 回答2: Ookii Dialogs libraries have an implementation

How can I make this control (may a kind of FolderBrowser)

会有一股神秘感。 提交于 2019-12-25 03:30:51
问题 As you can see in the picture below, this looks like a file dialog and folder browser. This dialog can select only folder(not file). Is this a custom control? If so, then please give me advice on how to make it. This is a Winforms application. 回答1: It is the native Vista IFileDialog based version of OpenFileDialog. With the FOS_PICKFOLDERS turned on. That option is not exposed in .NET, it isn't available on earlier versions of Windows. You can get a wrapper for it from the Windows API Code

input field for browsing folder

大憨熊 提交于 2019-12-24 22:06:27
问题 input field with type file used for browsing file .How to make it for browsing folder. 回答1: You can't. The input type=file control is limited to picking one file at a time. If you want to pick multiple files, there are various ways, Flash based uploaders, Java and ActiveX based components. The Flash based uploaders are the best bet, and there are Open Source ones around. Check out SWFUploader. 回答2: You would have to use server side or some ActiveX to do this as javascript does not support

How can I use the Browse for Folder dialog from a WPF app on Windows Server Core?

孤街醉人 提交于 2019-12-22 12:52:14
问题 I've tried using the FolderBrowserDialog and that seems to work on my development machine. However, this is not supported on a Windows 2008 R2 Server Core . I tried running this code anyway - the dialog appears, but the main display pane is not available. I've also tried using Windows shell32 API (SHBrowseForFolder) with the exact same results. ComDlg32 GetOpenFileName seems to work fine for selecting a file. Not sure what else to try. 回答1: There have been questions about why this is

Folder browser to list all system drive in WPF

旧街凉风 提交于 2019-12-22 09:59:31
问题 I have created a FOLDER BROWSER control in WPF, and is working fine, but for only one drive that I hard code. The document I followed to do so is : http://msdn.microsoft.com/en-us/library/bb546972%28v=vs.90%29.aspx I want to make it list all drives in the system in the treeview instead of only one. <Window.Resources> <ObjectDataProvider x:Key="RootFolderDataProvider"> <ObjectDataProvider.ObjectInstance> <folderExplorer:FolderExplorer FullPath="e:\" /> </ObjectDataProvider.ObjectInstance> <

Is it possible to use non-special folder as a FolderBrowserDialog's root folder?

[亡魂溺海] 提交于 2019-12-20 01:41:22
问题 FolderBrowserDialog.RootFolder Property is restricted to only special folder defined in the Environment.SpecialFolder enumerator. However in my applciation, we need to show this dialog, but the root path needs to be configurable, and is normally a custom folder, not related to any of the special folder in the enumerator. How can I show a folder browser with the root assigned to a custom folder? Maybe it's not possible with RootFolder property, but is it possible to have the same effect by

Select folder dialog WPF

情到浓时终转凉″ 提交于 2019-12-17 07:01:37
问题 I develop a WPF4 application and in my app I need to let the user select a folder where the application will store something (files, generated reports etc.). My requirements: Ability to see the standard folder tree Ability to select a folder WPF look & feel, this dialog must look like part of a modern application designed for Windows Vista/7 and not Windows 2000 or even Win9x. As I understand, until 2010 (.Net 4.0) there won't be a standard folder dialog, but maybe there are some changes in

WPF SaveFileDialog that permits selection of folder, not just file

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 04:17:34
问题 I need a control like SaveFileDialog that lets me choose a directory instead of a file. It should also let me specify the directory by pasting text. SaveFileDialog does not allow this. I have tried FolderBrowserDialog , but it does not meet my requirements because it does not support pasting the directory path as text. Some of the directory I'm working with may be nested 10 levels or more, so being forced to navigate via point-and-click is not enough. Thanks in advance. 回答1: