Tip Bank

DevX - Software Development Resource

Using Generic Objects

Question: I am using a subroutine which involves 2 list boxes in a pick box configuration. I take the literal boxname [Form.Control] and load it to a variable- BoxName. I

DevX - Software Development Resource

Getting Windows Directory

Question: How do I determine the Windows directory? Answer: The API call to use is “GetWindowsDirectory”. The Declare statement is listed in the the Windows 3.1 API help and the

DevX - Software Development Resource

Copying a File

Question: How do I write VB code to copy one file to another? Answer: You can either use the FileCopy Visual Basic command, or use the method outlined elsewhere in

DevX - Software Development Resource

Detecting Microsoft Video for Windows

Question: I need to inquire if Video for Windows has been installed beforeattempting to play an AVI file. How can I do this? Answer: All versions of Windows keep track

DevX - Software Development Resource

Using Seek Method

Question: I am currently migrating my VB/Access application to Microsoft SQL Server. However, the “SEEK” function in my old program does not work any more and I can not find

DevX - Software Development Resource

Aligning Columns in a List Box

Question: I have a List with names and addresses from a database.I want to have the list as shown below.Mr. Smith Street 10Mr. Andersson Street 25I’ve tried aligning them by

DevX - Software Development Resource

Getting CD Track Information

Question: I would like to read audio CD information directly from VB.At this point I have no idea how it is done, but as I want to writea database program,

DevX - Software Development Resource

Cancelling a Window During Load

Question: Supposing that in Form_Load I determine that I wish to cancel the load of the form (so that nothing is in memory and nothing is displayed to the user).

DevX - Software Development Resource

Getting all Filenames

Question: I am using VB4.0 Pro (16 bit) in WFWG and need to read entire directory of files, one after the other, without using the common dialog control. Answer: Look