Questions tagged [common-dialog]

questions related to MS Common Dialogs API

Windows Open File, Save File, Open Folder, Find and Replace, Print, Page Setup, Font, and Color dialog boxes.

https://learn.microsoft.com/en-us/windows/desktop/uxguide/win-common-dlg

48 questions
55
votes
8 answers

Register comdlg32.dll gets Regsvr32: DllRegisterServer entry point was not found

I have Windows 7, 64-bit. I'm trying to register a .dll (comdlg32.dll) using regsvr32. But I get an error that says the dll is read but the DLLRegistryServer entry point is not found. I have run the command under both System32 and SysWOW64 and I…
disasterkid
  • 6,948
  • 25
  • 94
  • 179
19
votes
9 answers

How can I use the common Save As dialog from VBScript?

I'd like to have my VBScript display the Windows Save As dialog box, but I could not find out how to do it. Using this code: Dim sfd Set sfd = CreateObject("UserAccounts.CommonDialog") sfd.ShowOpen I can get an Open dialog, but there is no ShowSave…
JayK
  • 3,006
  • 1
  • 20
  • 26
12
votes
1 answer

Windows 7: Property Handler works in Explorer but Not FileOpenDialog?

Working on writing a custom property Handler for our custom file type in windows 7. I have installed the Windows 7 SDK and built the sample Property Handler. After registering the handler, it works great in Windows Explorer, but in the common file…
Jeff Lundstrom
  • 1,043
  • 1
  • 8
  • 22
12
votes
2 answers

Possible to specify the start position of an IFileDialog?

I can't find anything in the Microsoft documentation, so I'm just wondering if any one knows, is it possible to specify the starting position for an IFileDialog? Specifically, I'd like the first time the dialog is opened for it to open in the center…
erlloyd
  • 485
  • 6
  • 20
6
votes
3 answers

Common Dialog for selecting a SQL Server and getting login details?

My application needs to ask the user what SQL Server to connect to and what credentials to use for the connection, and I was wondering if there's a dialog box out there that somebody has already built - functioning like the OpenFileDialog that comes…
SqlRyan
  • 33,116
  • 33
  • 114
  • 199
5
votes
3 answers

Is there a common dialog for selecting Active Directory users?

Is the Windows Select Users, Service Accounts, or Groups dialog: available through an API to 3rd party developers? Is there a "AD Browser" common dialog?
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
4
votes
1 answer

How can I change what's on the Places Bar of a common dialog box?

How can I add an item to the Places Bar on the left side of a standard file dialog box (TOpenDialog), where there are usually "Desktop", "My Computer", "My Documents", "My Network", etc.? Still a question how therefrom to clean standard buttons and…
Gu.
  • 1,947
  • 4
  • 30
  • 49
3
votes
2 answers

GetOpenFileName and system function call run time errors c++ win32 api

I've been working on a simple windows program using Visual C++ 2010 express on a 64bit Windows 7 machine. So far I have simple menu with and an editable text area. I'm trying to allow the user select a media file (movie or music file) and play it…
Unorth
  • 35
  • 1
  • 4
2
votes
1 answer

Does the frShowHelp Work Anymore for Common Dialogs in Delphi?

I was trying to add a Help button onto my Open, Save, Find and Print common dialogs in Delphi 2009. I thought the proper way to do it was to set frShowHelp to true in the Options property of the dialog: But when I do, the dialog comes up the same…
lkessler
  • 19,819
  • 36
  • 132
  • 203
2
votes
0 answers

Delphi 11.1 TFileOpenDialog.Execute hangs when CoInitializeEx is used in initialization before Forms initialization

In a small-ish Delphi 11.1 32bit app I've put an instance of TFileOpenDialog on a form, added a couple of fileTypes (*.zip and *. *) and in a button.OnClick handler called its Execute method. At runtime, clicking the button resulted in nothing…
Peter
  • 123
  • 1
  • 8
2
votes
0 answers

VB6 - Commondialog hide subfolder list

I would like to know if there is a manner for hide the subfolder listed in commondialog popup window so i can see only the files and not the subfolder
Jamester
  • 21
  • 1
2
votes
1 answer

How to set the directory of a save as dialog box through code?

Basically I've written some code that listens for a "save as" dialog box to pop up inside an application, and when it does it presses "save", all through code. This works great, however I need to be able to set the file path to what I'd like before…
Ritechis
  • 31
  • 3
2
votes
1 answer

using CFileDialog::AddCheckButton fails

OK, I am trying to use CFileDialog::AddCheckButton. The function call succeeds and I'm able to see the new check box. I'm unable to see any events and while I can override OnInitDialog, overriding OnOK is ignored. I'm not sure what I'm doing…
user9778277
  • 153
  • 1
  • 11
2
votes
1 answer

Set owner of OpenFileDialog from window handle

I would like to set the owner of the OpenFileDialog (within namespace Microsoft.Win32 not System.Windows.Forms) but I only have the handle (IntPtr) of the window (the handle doesn't have to be from my application it could be an external). Is that…
Rand Random
  • 7,300
  • 10
  • 40
  • 88
2
votes
2 answers

VB.Net: Looping through all form items, including CommonDialogs

I'm translating my VB.Net application, and I need to loop through all the controls on my form. Using a recursive function such as Public Sub TranslateControl(ByVal Ctrl As Control) For Each ChildCtrl As Control In Ctrl.Controls …
Clément
  • 12,299
  • 15
  • 75
  • 115
1
2 3 4