Common Dialog API calls

By | 2002-06-01

Here are the Windows API calls for the ShowOpen, ShowSave, ShowPrinter, ShowColor and ShowFont (Thanks to Jaen Saul aka SlowByte for his post) dialogs. Also included is the beginnings of the ShowFonts dialog but I am haning some trouble getting it to work. These calls are more difficult to use than the CommonDialog control placed on a form, but don’t have the version conflicts that Early-Bound and Form-Bound ActiveX controls have. In addition, I have added the ability to center the dialog on the form or center it on the screen.

Original Author: Paul Mather

Inputs

These calls make use of global variable types to pass information into the dialog box. Please see the examples in Form1.

Side Effects

Note that calling the wrong flags will cause your app to crash VB so save early and save often!!!

Attachments

FileUploadedSize
CODE_UPLOAD915.zip9/3/2020 3:45:00 PM7052
Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.