Article ID: 161286 - View products that this article applies to.
This article was previously published under Q161286
This article provides a code sample and demonstrates how to use the File Open dialog box in the Comdlg32.dll. Making use of Comdlg32.OCX is a good reuse of resources under Windows, because Windows always has its dependent file, Comdlg32.dll, loaded. It provides an easy-to-use interface, but can be a performance hit. If you use the OCX control, you have to load the module into memory and also distribute a 90K OCX control to users of your software. To improve performance, you should minimize the use of controls in your applications. Instead, you can use the Win32 API calls directly.
If you use the API calls, you may lose some of the functionality that Comdlg32.OCX offers, such as the Help button. If you require the Help button, you will need to use the Comdlg32.OCX control.
The Win32 SDK documents other calls to the Comdlg32.dll such as ChooseColor, ChooseFont, and GetSaveFileName.
For more information, please see the following article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/106682/EN-US/ ): Default Extension Ignores File Type in VB Common Dialog
Article ID: 161286 - Last Review: July 13, 2004 - Revision: 2.2