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

ComboBox Autofill

ComboBox controls, out of the box, don’t help complete phrases as they are typed in. The sample code below accomplishes that task. cmb is the name of the ComboBox to

DevX - Software Development Resource

A Quick Way to Register and Unregister DLLs

It’s really a pain to continually register, unregister, and reregister a DLL (or worse, many DLLs) using REGSVR32. Importing the following into your registry, allows you to set up options

DevX - Software Development Resource

Calling a Servlet From a JSP and Vice-Versa

Servlets and JSPs are the defacto method of server side computing today. Servlets form the logic of the application code and formatting for output is done with the help of

DevX - Software Development Resource

Spell Check VB Code Add-in

This addin is designed to check the spelling of your VB comments and/or double-quoted string literals inside your VB6 IDE using a procedure similar to MS-Word without checking the rest

DevX - Software Development Resource

KeysPressed – Test the status of up to three keys

Private Declare Function GetAsyncKeyState Lib “user32″ (ByVal vKey As Long) As _ Integer’ Return True if all the specified keys are pressed” you can specify individual keys using VB constants,

DevX - Software Development Resource

PerformanceTimer – A class module for high-resolution time measurement

‘——————————————-‘ PerformanceTimer class module’——————————————-‘ Use this class to profile your code and any other operation’ typically with a precision greater than 1 millionth of a second” As soon as you

DevX - Software Development Resource

Another Way of Handling Null Database Fields

A compact way of handling null database fields is as follows: txtText1.text = Format(rs!Field) If rs!Field is null, Format(rs!Field) will resolve to an empty string.Otherwise the value in the recordset

DevX - Software Development Resource

Handling Dialogs With One Line of Code

Handle dialogs with one line of code by encapsulating the show method within the form in a public function. This makes the form/dialog reusable and simpler to implement and update.

DevX - Software Development Resource

View Recordsets in Temporary Grids

An alternate, convenient way to view recordsets in debug mode is to persist a recordset to disk using rs.save MyFileUNC.ADTG in the immediate window. Note that the file must be

DevX - Software Development Resource

A Powerful and Simple Message Box Statement

This tip can be used as a Select Case statement with a MsgBox statement. Because a variable is not used to hold the response, adding one or more handles for

DevX - Software Development Resource

Adding Popup Menus to Custom Controls

Shipping custom controls with their own set of popup menu items make the controls appear appropriately professional. They add ease of use, functionality and value to the control(s). Here’s how

DevX - Software Development Resource

Adding Items in List Boxes as Tooltips

This piece of code lets you display an item in a list box as that list box’s tooltip. Private Sub lstItems_MouseMove(Button As Integer, Shift As Integer, X As Single, Y

DevX - Software Development Resource

Correct Authentication Flags in ADSI and VB

If you are unsuccessful at attempting to bind to an object residing in a Netscape Directory Server and you are using ADSI in VB or VBscript, you are likely using

DevX - Software Development Resource

Making a Form Scrollable

This is one of the simplest, but most powerful, ways to make a form scrollable. This method automatically disables or enables scrollbars according to the size of the area in

DevX - Software Development Resource

Cut, Copy, Paste, and Undo For Textboxes

Many programmers use Visual Basic’s Clipboard object to perform Cutting, Copying, Pasting and Undoing code. For example, to copy some text from a textbox, programmers sometimes use the following code:

DevX - Software Development Resource

Using a Boolean Expression to Group Records

Sometimes there is a need to group records into two larger categories, regardless of all other groupings. Using the Northwind database for an example, let

DevX - Software Development Resource

CTreeViewEdit – A class for enhanced treeview node editing

‘——————————————————-‘ The CTREEVIEWEDIT Class module” This class lets you use a regular TextBox control to’ edit a treeview node’s label. All you have to do to’ use this class is

DevX - Software Development Resource

Determine Absolute Row Index

Often, properties and methods associated with grid controls don’t provide an absolute (relative to the actual first row and not the first displayed row) row index of current or selected

DevX - Software Development Resource

The #error Preprocessor Directive

During the preprocessing phase, you can report errors by using the #error preprocessor directive. For example, suppose you have a program that uses 64-bit integers. This program has to be