openfiledialog

open file dialog not working in vista and 2008 envir

i am using Vista . I designed MSi file through Visual Studio 2008 Setup and deployment project in which I added one custom action. In the custom action, I am opening OpenFile dialog. This Open File dialog is not showing mapped drive or network locations. so how can i make the open file dialog to mapthe network drives. ...

OpenFileDialog always shows *.URL (Internet Shortcut files)

My OpenFileDialog has one single Filter which is also the DefaultExt. I wonder why, when the dialog opens, I also get all the Internet Shortcuts listed (it is OK to get the shortcuts to folders, for instance, but not the *.URL files). Is there some magic switch which I can turn on in order to net get them included in the list displayed ...

Delphi 7 and Vista/Windows 7 common dialogs - events do not work

I'm trying to modify the Delphi 7 Dialogs.pas to access the newer Windows 7 Open/Save dialog boxes (see Creating Windows Vista Ready Applications with Delphi). I can display the dialogs using the suggested modifications; however, events such as OnFolderChange and OnCanClose no longer function. This appears to be related to changing t...

Does the caller need to Release the IShellBrowser* obtained via the undocumented WM_GETISHELLBROWSER (WM_USER+7) message?

Several have pointed out that there exists an undocumented message that retrieves the IShellBrowser interface pointer from the common dialog HWND for the file open & save dialogs. But there is conflicting information (or no information) on whether that pointer is AddRef'd, or if it is just the raw address returned, and no Release() shou...

StreamReader looking for file in the wrong directory in C#

Hello, I have a program where I am using windows form, in that form I use openFileDialog where I open a file in some directory. Then I use in a different function a StreamReader and I have a 2nd file in my big/debug directory which I want the streamReader to open. But for some reason after I open the 1st file with the openFileDialog the...

Reusing OpenFileDialog

I have 2 textboxes and 2 button [...] next to each textbox. Is it possible to use one OpenFileDialog and pass the FilePath to the respective textbox, based on which button is clicked? i.e...if I click buttton one and laod the dialog, when I click open on the dialog, it passes the fileName to the first textbox. ...

Setting the filter to an OpenFileDialog to allow the typical image formats?

I have this code, how can I allow it to accept all typical image formats? PNG, JPEG, JPG, GIF? Here's what I have so far: public void EncryptFile() { OpenFileDialog dialog = new OpenFileDialog(); dialog.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*"; dialog.InitialDirectory = @"C:\"; ...

Stackoverflow/CLR Error in C# OpenFileDialog

The code below is one (of three) examples of my grief. It is a simple OpenFileDialog() call which causes the program to crash. On XP, the crash occurs if the dialog stays open for several seconds. On Vista, the crash occurs if the user selects "My Computer". In VS2008, the debugger sometimes catches a stackoverflowexception. If I pu...

How to disable automatic appending of wildcard pattern in Vista file open dialog

Hello, I'm using a file open dialog to chose image files for further editing. The filter list contains an "All supported formats" entry which represents a long list of file formats. Since Vista automatically appends the wildcard patterns in the filter combobox, the expanded combobox is too wide to fit completely on the screen. Besides t...

How do I get a single file name out of a File Dialog object in VBA (for MS Access 2007)?

How do I change my code to get the file name instead of the directory name? openDialog.InitialFilename gives me the directory name. openDialog.FileName gives me the error "Method or data member not found". Private Sub btnEditPhoto_Click() If (txtImageName > "") Then Application.FollowHyperlink txtImageName Else ...

C#, WPF - OpenFileDialog does not appear

I have been searching up and down the web and unfortunately never came across an issue quite like mine, so here goes: My C# WPF application won't show me no OpenFileDialogs or SafeFileDialogs. private void btnBrowseNet_Click(object sender, RoutedEventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.CheckPath...

OpenFileDialog for selecting more than 1 file with WPF

How can I implement an openfiledialog, which is able to do multiselecting? Do I need an extra libraray or is it also possible with the WPF-Control OpenFileDialog? ...

Intraweb 9.0 Browse for a filename

Hi. Does anybody know how to browse for a file in Intraweb? I'd need something similar to the Delphi OpenFileDialog. There is a TIWFile component, but it has no test/filename property to set. I need to locate a file, save the path in a database and then later on retrieve and display the filename. Regards, Pieter ...

Can the .NET OpenFileDialog be setup to allow the user to select a .lnk file

I want to show a dialog that will allow the user to select a shortcut (.lnk) file. My problem is that the dialog tries to get the file/URL the shortcut is pointing to rather then the .lnk file itself. How can I make it allow .lnk files to be selected? ...

How to use White to test OpenFileDialog on Silverlight 4.0 application?

I'm trying to test an OpenFileDialog that is created when the user clicks on a button in my Silverlight 4.0 application. According to the FAQ, the correct way of finding modal dialogs is this: Window mainWindow = application.GetWindow("main"); List<Window> modalWindows = mainWindow.ModalWindows(); //list of all the modal windows belong...

Browse/Select Assemblies from the GAC or elsewhere

I need to allow users to select an assembly in much the same way that Visual Studio does. Either from the GAC or from anywhere else in the file system. A simple OpenFileDialog will not suffice because navigating to c:\windows\assembly does not allow access to the actual file locations of the assemblies in the GAC. I am not writing a Vi...

CFileDialog - Selected filter and "Hint" showing all files

I have CFileDialog and set filter for it (Text files *.txt). When it opens, I see only TXT files, thats right. But! when I'm typing text into filename, the hint (under filename field) is showing all files (files with any extension). Can be this behavior changed by some flag? I want force hint to show only TXT files. ... CFileDialog f(TR...

FolderDialog Box Crashing Only in Debug Mode VSD2008

I have a folderBrowseDialog box in an application. It has been working for a month. Lately when I run the project from VS 2008 and I click on a button that opens the box the command ShowDialog() runs. The browser box shows up for a second and then I get "Windows encountered a problem box". Now here is the interest thing, if I compile...

How get file names using OpenFileDialog in .NET (1000+ file multiselect)

Maybe some of you have come across this before.... I am opening files for parsing. I'm using OpenFileDialog, of course, but i'm limited to a buffer of 2048 on the .FileNames string. Thus, I can only select a few hundred files. This is OK for most cases. However, fore example, I have in one case 1400 files to open. Do you know a way to ...

how to download client side content

I want to let the user download the current content of a textarea into a text file on their computer. In the past I would create an iframe pointing to a URL with the data, which would trigger a file download dialog. However this time the data is client side. So, is it possible to let the user download data without sending it server sid...