The following Microsoft Knowledge Base
articles are considered "must reads". They provide advanced tips & tricks, answers
to serious problems, and sometimes solve gaping holes in VB.
Please be sure to also visit Advanced Visual Basic's
Performance Tuning & Optimizing Visual Basic
page for other great KB links.
How to Use Icons with the Windows 95 System Tray
This trick has been seen many times in sample programs, now Microsoft
has finally documented it for us all. No "message blaster" or OCX required.
Just good ol' pure VB code.
How to Use the Registry API to Save and Retrieve Settings
Although Visual Basic 4.0 includes the SaveSetting and GetSetting functions to save and retrieve information from the registry, these functions only operate on a specific section of the registry. This article outlines the use of 32-bit Windows API functions, which can be used to set and retrieve values from anywhere in the registry.
How to specify 32x32 and 16x16 Icons for Win95 Logo Compliance
The Windows 95 Logo program requires that an application provide 32x32 and 16x16 icons for use by the operating system. This article shows how to accomplish this in Visual Basic 4.0.
How VB Can Get Windows Status Information via API Calls
The Visual Basic for Windows sample program below demonstrates how you can obtain system status information similar to the information displayed in the Windows Program Manager About box. This includes the Windows version number, CPU processor type, and the amount of free memory.
How to Implement What's This Help in Visual Basic 4.0
Under Windows 95 and Windows NT 3.51, it is possible to right click on items and get the "What's This?" window to appear. To set this up in Visual Basic, it requires the use of a pop-up menu.
How to Determine If a VB App is Running Under Windows NT 3.x
There are some scenarios in which your program should behave differently when running under Windows NT version 3.x instead of under Windows version 3.x. For example, an application based on Windows NT needs to handle networking API calls differently. Therefore it is important to find out whether or not your Visual Basic program is running under Windows NT. This article shows you how.
How to Exit Windows from a Visual Basic 4.0 Application
This article shows by example how to exit Windows from a Visual Basic version 4.0 application.
How to Import Relationships Using DAO in a VB 4.0 Program
This article demonstrates how to use the new capabilities of Visual Basic Data Access Objects (DAO) 3.0 to manipulate relationships through Visual Basic code. The step-by-step example uses DAO to read all relations from a specified database and then attempts to append identical relations into the current database. The appended relations that succeed become the imported relations.
RegClean Description and General Issues
The RegClean utility supplied with Microsoft Visual Basic version 4.0 for Windows has been updated.
This utility is available for downloading free of charge. The download file,
REGCLN.EXE contains a 32-bit setup only. For more information on RegClean see
Cleaning the Registry.
HOWTO: List Running Processes
This article illustrates how you can list the processes that are currently running on a computer.
The approach is different for Windows 95/98 and Windows NT; this article illustrates both solutions.