Tip Bank

DevX - Software Development Resource

Troubleshooting Custom DLLs in VB

If you’re getting GPFs and you aren’t sure if the cause is your customDLL or VB, write a BAS file stub that simulates your DLL. If the GPFs persist,its not

DevX - Software Development Resource

Disabling All Controls on a Form

If you ever need to disable all the controls on a form you can loopthrough the control array and set each Enabled property to Falsewith this code: Sub cmdArray_Click ()

DevX - Software Development Resource

Run Multiple Copies of VB

For debugging or whenever you want to copy code from one project toanother, it would be very easy if you could have two instances of VB runningat the same time.

DevX - Software Development Resource

Break up Large Apps

If you have a large app, consider breaking it down into smaller apps.Use one main EXE that calls the others and DDE to provide communication.When a sub-app opens, open a

DevX - Software Development Resource

Access Keys with Labels

There is a very simple trick you can perform with labels and text boxesthat will help users who like to use the keyboard instead of the mouse.Notice the underlines in

DevX - Software Development Resource

Make Forms Stay on Top

To set a form to be always on top, use the subroutine listed here.Pass it the hWnd property of the form you want to float. The OnTop parameteris used to

DevX - Software Development Resource

Use VShare.386

When you’re using OLE or the JET database engine, you’ll need to loadSHARE on your system and all systems you deliver your app to. In the lattercase, you are guaranteed