We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

DevX - Software Development Resource

Create “Tag Tips”

Use the Tag property and the MouseMove event to create “tag tips”which look like tool tips. Create a label to be used as the tool tipbox and set its visible

DevX - Software Development Resource

Minimizing All Windows In Win95

In Windows 95, only the VB windows with the property ShowInTaskbar setto True are minimized if you select Minimize All Windows from the taskbar context menu. This is the way

DevX - Software Development Resource

Redefine Your Tab Order

When you need to reset your tab indexes quickly (without buying a third party VB extension product), set the tabs in the reverse tab order assigning each tab index to

DevX - Software Development Resource

Rename The Printer Module

Do you have a module or class of the same name as a system-providedobject? If so, VB will use your object, not its own. In VB3, where youcouldn’t define your

DevX - Software Development Resource

Converting Strings To Title Case

I’ll present this tip the VB3 way and the VB4 way. I beat myself fora couple of hours over this routine to convert a string to Title Case.I used this

DevX - Software Development Resource

Properties Collection of Data Access Objects

The Properties collection of many data access objects is very helpfulwhen debugging. Execute this code from the debug window: For i = 0 to Recordset1.Properties.Count- 1:Debug.Print _ Recordset1.Properties(i).Name &Recordset1.Properties(i):Next

DevX - Software Development Resource

Use Object Substitution

Use object substitution to substitute a simple name with an extendedobject reference. Each “.” in the syntax represents an OLE lookup.Better performance is achieved the fewer times lookups need to

DevX - Software Development Resource

Extract File Names From File Specification

Here is a simple way to extract file names from file specifications: Function FName (filespec As String) As String Dim i As Integer Dim size As Integer size = Len(filespec)

DevX - Software Development Resource

Talk About Reusable Code!

In VB4 you can create a single Splash Screen or About Screen that workswith any program and automatically keeps itself up to date using the newproperties of the App Object.

DevX - Software Development Resource

Calling on Word

Microsoft Word exposes the WordBasic object. Through this object, you can execute WordBasic statements. The WordBasic statements and functions can be used as methods of the WordBasic object. Most WordBasic

DevX - Software Development Resource

Null Handling in Database I/O

Nulls are still a problem in VB3/VB4-they cause unexpected errors. To handle them, you can read the MDB field into a variant, which can hold a null and then test

DevX - Software Development Resource

Automatically Upgrade Workstation EXEs

I’m programming for a LAN and quite often I add requested features to the program. The LAN is set up so that each workstation is running its own copy of

DevX - Software Development Resource

Build Debugging/Profilling Into Your Code

To build debugging and profiling into your code, add this to the endof code lines: ‘Code line Add this line (n should be replaced’by a unique number)i = j +

DevX - Software Development Resource

Debugging Using the Query TopValues Property

I speed up the debugging of applications with queries that return large record sets by using Access 95 to temporarily set the TopValues within the query stored in the MDB.

DevX - Software Development Resource

Fixed Dialog Forms in VB3

A VB3 form that has a fixed double border does not show the form’s icon in the upper left-hand corner if you have the control box set to True. Here’s

DevX - Software Development Resource

Packing Check-Box Values into a Single Integer

Use this code to find the binary representation of the currently checked check boxes: Function WhichCheck(ctrl As Object) As _ Integer’ This function returns the binary value ‘ of an

DevX - Software Development Resource

Create an Array on the Fly with the Array Function

The GetRows method retrieves multiple rows of a Recordset (JET) or rdoResultset (RDO) into an array. Ioften use this feature to transfer data between an OLE Server and client applications.

DevX - Software Development Resource

How Old Are You?

This function returns the difference between two dates on Years, Months, and Days: Function GetAge(dtDOB As Date, _ Optional dtDateTo As Date = 0) _ As String ‘is dtDateto passed

DevX - Software Development Resource

A Reminder You Can’t Miss

I often have several programming irons in the fire at one time. Jumping back and forth from project toproject, I sometimes lose track of where I left off within each

DevX - Software Development Resource

Consistent Version Numbers

For consistency’s sake, use this routine wherever your version numbers appear in code: Public Function GetMyVersion() As String ‘ Turn version info into something ‘ like “1.02.0001” Static strMyVer As

DevX - Software Development Resource

Right-Align Controls on Forms

When creating resizable forms, I like to place command buttons in either the upper-right or lower-rightcorners. For example, on data entry forms, I place record navigation buttons on the lower-left

DevX - Software Development Resource

Keep Track of the Last Form

In your MDI application, you might have many child forms and need a form to go back to the form thatcalled it. In each child form, declare this variable: Public