August 7, 1997

DevX - Software Development Resource

Printing From The RichText Control

The on-line documentation on using the RichText control to print tellshow it is supposed to work. It does not mention two basic problems. First,the RichText control doesn’t work with the

DevX - Software Development Resource

Binding With Microsoft Word Type Library

The benefit of early binding is that performance improves and code doesnot need to be localized for each international version of Word. This istrue only for the function that is

DevX - Software Development Resource

See The Methods Exported By An OCX

You can use the code window to see the events for an OCX, and the propertieswindow to see the properties of an OCX. To see the OCX’s methods, use theObject

DevX - Software Development Resource

Determine When An App Is Complete

In VB3, you call GetModuleUsage() to determine when an app you startedwith the Shell command was complete. However, this call does not work correctlyin the 32-bit arena of Windows NT

DevX - Software Development Resource

Numeric Strings As Keys In A Treeview Control

To use numeric strings as keys in a treeview control, the keys mustbe strings containing a non-numeric character, not just digits. A handyworkaround is to append the string “_” to

DevX - Software Development Resource

Code All KeyPress Events in One Move

Do you need to tab through all those edit boxes? Are you tired of coding all of their KeyPress events? If so, set the tab indexes as you normally would.

DevX - Software Development Resource

Check Available Drive Space

The setup kit supplied with VB has a DLL with a useful function thatcan be called from your own applications. The function, GetFreeDiskSpace,returns the amount of free space available on

DevX - Software Development Resource

Create Numeric-Input Text Boxes

In almost every application’s project you come across, fields necessitate the use of numeric text boxes-text boxes that should accept only numeric values. You can deal with this situation by

DevX - Software Development Resource

Load New OCXs, Error-Message Free

Normally, to load a new OCX, you select Custom Controls from the VB4Tools menu. Then, in the Custom Controls dialog, click on the browse button,select the OCX file, and click