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

A Tale of Three Beeps

Are your programs not executing instructions in VB4 that wereexecuting in VB3? Try this in Qbasic, VB3, and VB4: BEEP: BEEP: BEEP If you F8-step through this very complex code,

DevX - Software Development Resource

Open Help File Contents

Most programmers want their applications to look like commercial software, so they want to add their ownhelp files. How do you open the contents of a Windows help file in

DevX - Software Development Resource

Positioning a Common Dialog

If you are you unhappy with Microsoft’s comment in the help (“Note:You cannot specify where a common dialog box is displayed”),but like the idea of common dialog controls, try this.

DevX - Software Development Resource

Sharp = Dressed Icons

To make icons look better, Windows 95 uses three standard-size icons;16-by-16, 32-by-32, and 48-by-48. These three standard sizes should beincluded in any ICO file you create for inclusion in your

DevX - Software Development Resource

An Improved User Tip

The User Tip submitted by Nick Bulka in the January 1996 issueof VBPJ was interesting, but, as with so much code, improvable: Sub TextHiLite( t as TextBox ) t.SelStart =

DevX - Software Development Resource

Disable the Default Popup Menu on Text Boxes

Some controls in VB4 and VB5, such as the TextBox control, have a default context menu that appearswhen you right-click on the control. If you want to pop up your

DevX - Software Development Resource

Create Multiple Levels of Directories

If your users have the option to type a directory where they wantfiles installed, they may type a directory that doesn’t existor a directory that is several levels below another

DevX - Software Development Resource

A Taskbar-Compliant Version of Centerform

To center a form, you only need one API call, no UDTs, and two constants. This solution is based on thefact that GetSystemMetrics reflects real estate taken up by the

DevX - Software Development Resource

ListView Controls Don’t Accept Numeric Keys

In a collection object, such as the ListItems collection from the ListView control, or simply a generic VBcollection object, you can specify a key to uniquely identify the item. Documentation

DevX - Software Development Resource

32-Bit GetModuleUsage Workaround

I have found a solution to the problem of GetModuleUsage not workingin 32-bit VB4. The TaskID returned by Shell can be used by AppActivatelike this: TaskID = Shell(“DOSAPP.EXE”, _ vbNormalFocus)

DevX - Software Development Resource

Creating Database Passwords in VB4

Jet 3.0 (32-bit VB4 only) includes a new security system basedon database passwords that you may use instead of the more complex,more secure, workgroup security system. This system allows youto

DevX - Software Development Resource

Set Columns in DBGrid At Design Time

Set the number of columns in VB4’s DBGrid at design time by right-clickingon the grid and selecting Edit from the menu. (The grid can now be editedinteractively at design time.)

DevX - Software Development Resource

Notify The System Of Changes

A new Windows 95-only API call notifies the system that you’ve changedsomething it should know about. The call, SHChangeNotify, is very handyin a number of cases. You might make this

DevX - Software Development Resource

Converting File Names

VB4’s commands for dealing with file names (such as KILL, MKDIR, andFILECOPY) support long file names without programmer interaction. A numberof the Win95 API functions will return only the short

DevX - Software Development Resource

Instant About Boxes

The ShellAbout API call provides a quick and easy way to show an aboutbox (using the standard Win95 format) without having to include an additionalform in your project. The call

DevX - Software Development Resource

Mouse Events Don’t Fire if Enable is False

MouseMove events don’t occur when the control’s Enabled property is set to False. My method tackles this problem and is useful when you want to display the Tooltips or Notes

DevX - Software Development Resource

Test For False Instead of Zero

If you’re checking a numeric value against 0, one option is to usethe “” operator: If iNumber 0 Then … End If It is faster, however, to check the variable

DevX - Software Development Resource

Create Temporary Files

I’m developing a database program that deals with many auxiliary files at same time. Everyone codingdatabase programs must create some temporary files to produce an output from SQL or a

DevX - Software Development Resource

Design Your Colors So User Can Change Them

Pay close attention to the color selections you make in your forms.Windows 95 gives the user more control over colors than previous versionsof Windows allowed. problems arise if the user

DevX - Software Development Resource

Opening Password-Protected Databases

Use the connect parameter of the OpenDatabase method to open adatabase that is password-protected in VB4-32. For example, thiscode opens the Secure database with a password of “dirt”: Dim wrk

DevX - Software Development Resource

DoEvents() And Preempitive Multitasking

Windows 95 is a preemptive multitasking system. As a result of this,no single application monopolizes the entire CPU at any given time. Manyof the DoEvents() calls previously used in Windows

DevX - Software Development Resource

Accurate Time Delay

This routine allows you to put a fairly accurate time delay, veryuseful for I/O routines and nice, graphic-delayed drawing routinesin your code: Sub Delay (milliseconds As Integer)’ This Routine uses

DevX - Software Development Resource

Emulating Overstrike Mode in Text Boxes

Windows text boxes always work in insert mode and don’t provide anoverstrike mode. However, overstrike mode can easily be emulated as shownhere: Sub Text1_KeyPress (KeyAscii As Integer) If KeyAscii >=

DevX - Software Development Resource

Speedy List Boxes

One way to speed list-box loading is to eliminate the constant redrawingrequired while loading. You can do this by calling the LockWindowUpdateAPI. LockWindowUpdate accepts an HWND as a parameter to

DevX - Software Development Resource

Understanding Unicode

VB4 introduces the use of double-byte characters. Most of this is transparentto the programmer and requires no special consideration. When calling APIfunctions or reading/writing to a file VB will handle

DevX - Software Development Resource

Streamline Your API Declares, Part 1

Most Windows API routines are functions and must be declared assuch, but in many cases we are not really interested in theirreturn value. The SendMessage function, for example, dependingon the