VBnet Sponsor - Compuware Corporation

 

Enumeration Routines
Methods dealing with callbacks, enumeration and subclassing are for VB5/VB6 only.
Updated Saturday March 31, 2001
   
Category
Topic
Display
vb6
vb5
Changing the Display Resolution from Visual Basic
Use this routine to change the current screen resolution or depth. Sep 01.98

Enumerating the Available Display Resolutions
Method to determine which resolutions a system supports. Modified from original code to support multiple-frequencies returned by NT4. Jun 04.99



Fonts
vb6
vb5
How to Enumerate the System Fonts using VB6/VB6
Based on the VB5 Help File example, this is the simplest code to enumerate the available Windows fonts using a callback and the Windows EnumFontFamilies API.

Enumerating the System Fonts by Type
Code to enumerate the available Windows fonts using a callback and the Windows EnumFontFamilies API, but populating the listbox only with fonts matching a desired type

Enumerating the System Fonts with Preview
This was just for fun ... code to enumerate the available Windows fonts using a callback and the Windows EnumFontFamilies API, populating the listbox with all fonts, and previewing the font at any size between 8 and 120 points.

Populating a Font Menu and Splitting a Long Menu into Columns
How to populate a Fonts menu and specify column breaks to assure it remains on-screen.  (portions apply to VB4-32)



Locale Info
vb6
vb5
Obtaining a User's System Calendar Information
Use Enumeration callbacks to retrieve the month and days specific to the users locale. Aug 08.99

Changing the System Long and Short Date Formats with SetLocaleInfo
Now assure that systems always have the desired short and long date formats set. Aug 08.99

Obtaining a User's Regional Locale Date Settings with EnumDateFormats
Code to enumerate, via callbacks, the available locale time strings. May 16.99

Obtaining a User's Regional Locale Time Settings with EnumTimeFormats
Code to enumerate, via callbacks, the available locale time strings. May 16.99

Retrieving a User's Regional Locale Date Settings
Though not using callbacks, this obtains the national language locale settings for the user to retrieve strings representing times, dates, and other information. May 15.99



Ports
vb6
vb5
Enumerating Windows' Available Ports
Find the installed ports on the specified machine. Sep 17.99


Printers
vb6
vb5
Enumerating Local and Network Printers
Determine the available printers. print servers, domains, or print providers using EnumPrinters for Win9x and NT. Sep 20.99


Windows
vb6
vb5
Enumerating and Restoring Windows
Using EnumWindows to obtain window information, and provide a means to restore the window regardless of its window position. Mar 01.2000

Enumerating Windows Using Callbacks
Another Enumxxx API, this one enumerates system windows using AddressOf. June 17.98

EnumWindows and EnumChildWindows Callbacks
Using EnumWindows and EnumChildWindows. Jan 26.2000



VBnet Sponsor - Compuware Corporation

Copyright ©1996-2001 ebirch ltd/VBnet and Randy Birch. All Rights Reserved.  Terms of Use