How To Use Color Dialog from COMDLG32.DLL in VB and Access (153929)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q153929 SUMMARY
Making use of the COMDLG32.DLL is a good reuse of resources under Windows
because Windows always has COMDLG32.DLL loaded. If you use the COMDLG32.OCX
control instead, your program must load the OCX into memory and you must
also distribute an additional 90K file to your customers. The OCX control
provides an easy-to-use interface to predefined dialog boxes, but is a more
expensive hit on performance and resources. To optimize performance and
reduce resource usage, you should minimize the use of controls in your
applications and use the Win32 API calls directly. Below is a code sample
of how to use the Choose Color dialog box in the COMDLG32.DLL.
REFERENCES
Microsoft Visual Basic Programmer's Guide, Chapter 11, P.325-332.
Win32 SDK.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto KB153929 |
---|
|