Tip Bank

DevX

Implementing a Toolbar

Question: I am using VB 3.0 professional edition. I would like toimplement cut/copy/paste on a toolbar. My form has multipletext boxes. If the user wants to paste to a field,

DevX

Selecting File from File List Box

Question: I put a drive box, a directory list box, and a file list box on the form, with the intention of being able to select an *.ico file from

DevX

Formatting a Disk

Question: How do I issue a disk format command from myVB code? Do I simply shell to DOS? Answer: That’s what I would recommend. Format is a .COM file, so

DevX

RecordCount Incorrect

Question: VB reports the wrong number of records from an Access database with the RecordCount property. The same query to dBase files reports the correct number of records. What is

DevX

Deleting Control Code

Question: How do I delete a control AND the corresponding code? Answer: When a control is deleted, the code is listed in the (general) section in the Procedures drop-down list

DevX

Using Ampersands in Labels

Question: I can’t seem to figure out how to place a “&” sign in a text field or in a label’s caption. Answer: Try putting two ampersands next to each

DevX

Putting Controls on MDI Forms

Question: I have a project I am working on including an MDIform with a toolbar. I am wanting to put a combobox on the toolbar, but VB4 will not let

DevX

Using ToolTips

Question: How do I program the ToolTips (text that appears when the cursor is over a toolbar button) ? Answer: You should look into the Tips control from Mabry Software.

DevX

Passing a Form to a Sub/Function

Question: How do I pass a form as an argument to a function or procedure? I have tried passing the the form name directly and the form name as a