filedialog

good directory picker for visual basic macros in MS Outlook (2007)

I wrote a visual basic macro for archiving attachments for Outlook 2007, but did not find a totally satisfactory way for showing a directory picker from the outlook macro. Now, I don't know much about either Windows APIs or VB(A) programming, but the "standard" windows file dialog I see most often in Microsoft applications would seem lik...

Is there an OpenFileOrFolderDialog object in .NET?

Is it possible to use the OpenFileDialog class select a file OR folder? It appears only to allow the selection of a file, if you select a folder and then choose open it will navigate to that folder. If the OpenFileDialog can not be used for this is there another object I should be using? EDIT: The scenario is that I have a tool that c...

How can I programatically manipulate any Windows application's common dialog box? (.NET)

My ultimate goal here is to write a utility that lets me quickly set the folder on any dialog box, choosing from a preset list of 'favorites'. As I'm just a hobbyist, not a pro, I'd prefer to use .NET as that's what I know best. I do realize that some of this stuff might require something more than what I could do in C#. I have seen som...

How to filter a report object when saving through FileDialog in MS Access

I am attempting to save an rtf file using FileDialog and would like to filter using a where clause. This is what I have: Set dlgSave = FileDialog(msoFileDialogSaveAs) With dlgSave .Title = "Provide the place to save this file" .ButtonName = "Save As..." .InitialFileName = Me.cmbPickAReportToPrint.Value & "-" & Format(Date, "mmddyy...

Java applet: IE Browser hangs after opening a file dialog. Workaround?

This is a registered bug (Bug ID: 6515708) but does anyone have a workaround for it? Scenario javascript calls OpenDialog() method in applet applet starts new thread which opens the AWT FileDialog on completion, the file name is read and the javascript method OnDialogComplete is called At this point the dialog is disposed and (on some...

File download dialog IE7 disappears

The following code will not run correctly in IE7 with the latest service packs installed. System.Web.HttpResponse response = System.Web.HttpContext.Current.Response; response.Clear(); response.AddHeader("Content-Disposition", "attachment;filename=Contacts.xls"); response.ContentType = "application/octet-stream"; System.Text.UnicodeEnco...

How can I make a java FileDialog accept directories as its FileType in OS X?

I am trying to switch from using a JFileChooser to a FileDialog when my app is being run on a mac so that it will use the OS X file chooser. So far I have the following code: FileDialog fd = new FileDialog(this); fd.setDirectory(_projectsBaseDir.getPath()); fd.setLocation(50,50); fd.setFile(?); fd.setVisible(true); ...

Using the OSX file chooser for a newProjectFilechooser JAVA

We have been using JFileChoosers with quaqua LAF on the mac but I need to migrate our file choosers to the native mac filechoosers (I know its going to ruin portability but this is what people want). There were to main file choosers I needed to port the openProjectFileChooser just needed to select a file to be opened and this was no pr...

Need FileDialog with a file type filter in Java

I have a JDialog with a button/textfield for the user to select a file. Here's the code: FileDialog chooser = new FileDialog(this, "Save As", FileDialog.SAVE ); String startDir = saveAsField.getText().substring( 0, saveAsField.getText().lastIndexOf('\\') ); chooser.setDirectory(startDir); chooser.setVisible(true); String fileName = cho...

Using a FileDialog to choose a file of a certain extension

I am trying to use a FileDialog file chooser because I really need java app to have the native apple file chooser (I know we all hate hate the lack of portability but this is what I need). I am trying to make my file chooser allow the user to pick files that end with .ws. Here is what I tried: FileDialog fd = new ...

User navigates to folder, I save that folder location to a string.

How can I do this? I want a user to click a button and then a small window pops up and lets me end-user navigate to X folder. Then I need to save the location of the folder to a string variable. Any help, wise sages of StackOverflow? ...

php - file download box

Hi, I'm giving a user a link to download a csv file ...just using Click <a href="report.csv">here</a> to download your file. This text and link is being displayed in a small popup window - height 100 width 400. If the user clicks "save" - then no problem then the file is saved to wherever they choose If though they choose "open" ...

Why does the Java AWT FileDialog setIconImage method fail to set the icon?

I am attempting to use a Java AWT FileDialog, but I want to replace the default Java Dialog icon with something else. In short, the code looks something like this: Frame frame = new Frame(); Image image = ImageIO.read(new URL("file:/path/to/myfile.jpg")); FileDialog fileDialog = new FileDialog(frame, "Save As", FileDialog.SAVE); fileD...

Why does FileDialog sometimes not remember the initial directory?

I have made a WPF application on which you can open some Open/SaveFileDialogs. On my PC it remembers the directory I was in last time I used such a dialog and sets that as initial directory when I open another such dialog. But on my colleague's PC it doesn't remember. The exact class I use is Microsoft.Win32.OpenFileDialog. We both have...

How do I center a java.awt.FileDialog on the screen

I have never been able to figure this one out; the usual suspects don't work. Given: FileDialog dlg=null; dlg=new FileDialog(owner,"Select File to Load",FileDialog.LOAD); dlg.setFile(null); dlg.setVisible(true); is there any way to get that dialog centered? ...

FileDialog DoubleClick Behavior

While developing a WinForms application, I came across what I believe is a bug in the OpenFileDialog and SaveFileDialog controls. A Google search turned up a single other person who noticed the same issue, but neither a solution nor a workaround was provided. You can view this thread at: http://bytes.com/topic/visual-basic-net/answers/38...

Making File Dialog only accept directories

I want to have a file dialog only allow directories, here's what I've been trying: fileDialog = QtGui.QFileDialog() fileDialog.setFileMode(QtGui.QFileDialog.ShowDirsOnly) filename = fileDialog.getOpenFileName(self, 'Select USB Drive Location')) Thank You ...

qt filedialog directory

i got a QString blabla = qtfiledialog::getOpenFileName(); now blabla gives me the full path and the exe like: C:/Program Files/imanoob.exe but i only want the path like: C:/Program Files/ how to do this? ...

PyQt4 File select widget

Hi, I want to make a QT4 (using QT designer) dialog, that contains a part where a file has to be selected. Now, I know QFileDialog exists, and I can program something that does what I want. But can I also just do it in QT designer? Is there some way to get a "file select" widget in QT designer? Or, I remember these buttons, having the...

.NET. How to hack OpenFileDialog?

Possible Duplicate: changing button text in OpenFileDialog in C#.net Have a good day, Is there a way to override Open button in .NET OpenFileDialog? I need to Change the button text and override OnClick event. If this is not possible can I put a custom button over the Open button (but at the most top X order)? -- BR Murat...