devxlogo

Tip Bank

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

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

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

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

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

Embedding Registration Information

Question: Is it possible to edit a VB3 executable at runtime, i.e. inserting Registered user name and serial number information into the executable so that it can come up when

Editing Forms Directly

Question: I want to present screens of text in an application. I plan to use label controls and would like to cut and paste the text from my word processor

Panel Controls Not Painting Correctly

Question: I have a 3D Panel on a form that fills in incrementally when certain operations are run. I expect that the panel should be visible when the form appears

Using Rnd Function

Question: Is there any way I can have a % chance in random events. (say you click on a button and you have a 30% chance of it doing one