devxlogo

Tip Bank

Creating Disabled or Etched Icons

Here’s how to create an etched or disabled icon using an icon editor:1. Change all filler color to light gray. 2. Change the outline to dark gray (usually from black).

Conditionally Compile Your Code

Most developers know about VB4’s Conditional Compilation feature, where you can declare WindowsAPIs for 16-bit and 32-bit operating systems: #If Win#32 then ‘If running in 32-bit OS Declare SomeApi….#Else ‘If

License Errors in VB4

I ran across an interesting problem trying to install VB4 EnterpriseEdition in the Windows 3.1 environment. The new version of VBuses the Registry database, which in Win 3.1 is limited

Constant Failure? Don’t Do That!

Most things in VB4, including the VBA and VB engines, are OLEobjects. In some cases, objects can expose properties or methodswith the same name as in another object. Theoretically, the