Using the Choose Color Dialog Box
All Visual Basic programmers have used the Common Dialog Control for opening, saving, choosing colors and more, but did you know that you can do all this by calling the DLL directly?
Why would you want to call the DLL directly? The ActiveX control works fine!
Well, the Common Control DLL is permanently loaded with Windows, but the ActiveX version that is available in Visual Basic has to be loaded separately and more memory and resources will be required. The other reason lies in there being several versions of the Common Control provided with Visual Basic and the hefty (140Kb) sized control has to distributed with all your applications making a much bigger application. If you are distributing your application over the internet or any other means where size matters then using the API is the solution.
This article will focus on using the API to display the choose color dialog box.
The Choose Color Dialog Box
Page 1 of 3