









Use Objptr function to quickly locate an object in a Collection
One of the simplest and most effective uses of the ObjPtr function is to provide a key for quickly locating an object in a Collection. Let’s suppose you have a
One of the simplest and most effective uses of the ObjPtr function is to provide a key for quickly locating an object in a Collection. Let’s suppose you have a
You can retrieve and change the blink rate of the flashing caret inside TextBox controls through a couple of simple API functions: Private Declare Function SetCaretBlinkTime Lib “user32” (ByVal wMSeconds
The ConfigurePort API function lets you programmatically bring up the system dialog box for configuring a COM or LPT port. The function returns a non-zero value if successful (that is,
It might surprise you to learn that Friend procedures are sensibly faster than Public ones. You can prove this yourself by creating an ActiveX EXE project with one Private class
VB6 functions can return an array. Unlike regular functions that return scalar values or objects, however, you can’t use the name of the function as a local variable where to
As explained in the Mistake Bank you need all three flavors of Property procedures to correctly implement a Variant property that can take either an object or a non-object value.
The ListView control that comes with VB6 lets you select an entire row by setting its FullRowSelect property to True. If you are working with VB5 or you’re using VB6
Creating a read-only property or a write-only property isn’t difficult, as you probably know: just omit the Property Let (or Set, if dealing with objects) or the Property Get procedure,
The Open statement also supports special device names such as COM1 or LPT2. You can build on this feature and use the Open command to test whether a given serial