February 8, 2003

Use the Keyboard for Extra-Fine Sizing and Positioning

If you have a sensitive mouse and/or many objects you need to position carefully on a form, getting everything right can be a real pain?especially when you click on an object simply to alter some of its properties and move it accidentally. Here

Merge VBL Files into Your Registry

Use this tip when developing ActiveX components and testing ActiveX OCXs that require license files. These Registry entries allow you to merge VBL file contents into the Registry. You add three context menu options for VBL files: Merge (into the Registry), Edit, and Print: REGEDIT4[HKEY_CLASSES_ROOT.vbl]@=”VisualBasic.VBLFile”[HKEY_CLASSES_ROOTVisualBasic.VBLFile]@=”Visual Basic Control License File”[HKEY_CLASSES_ROOTVisualBasic.VBLFileDefaultIcon]@=”NOTEPAD.EXE,1″[HKEY_CLASSES_ROOTVisualBasic.VBLFileshell][HKEY_CLASSES_ROOTVisualBasic.VBLFileshelledit]@=”&Edit”[HKEY_CLASSES_ROOTVisualBasic.VBLFileshelleditcommand]@=”NOTEPAD.EXE “%1″”[HKEY_CLASSES_ROOTVisualBasic.VBLFileshellopen]@=”Mer&ge”[HKEY_CLASSES_ROOTVisualBasic.VBLFileshellopencommand]@=”regedit.exe

Open Namespace Objects From VB

As you probably know, you can open an Explorer window on a directory from VB by using the intrinsic Shell function: Dim TaskId As LongTaskId = Shell(“Explorer c:”, vbNormalFocus) But what about items in the namespace that don

Duck the Modal Form PopupMenu Bug

Microsoft confirms this bug: If an application contains at least two forms, and one of those forms is displayed modally using a PopupMenu on another form, a PopupMenu on the modal form won

Quick Split

When you use the Split function from VB6 or VBScript, sometimes you need only a single value and not the whole array. To do this, you can reference the element you need right after the Split statement like this: Split(myVar, myDelim)(1) This statement retrieves the second element of the array,

Make the Background of Your RichTextBox Controls Transparent

If you plan to require Windows 2000 for your application, you can make your standard VB RichTextBox control 100-percent transparent with a few simple API calls. To try this tip, create a new project (or use an existing one), add a RichTextBox control, and add this code and these declarations

No more posts to show