devxlogo

Tip Bank

Creating Delays

Question: Can you suggest ways to delay sending keystrokes to the external application? I’ve tried inserting ‘For-Next’ loops of different durations but without success. Answer: Try a timer control. That

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

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

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

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.

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

Making a System Modal Message

Question: How can I make it so that a form will stay on top until the user presses a button? For example, an error message pops up, the user can’t

Deleting a Record from the DBListBox

Question: How do I delete a record with the data I’ve selectedin a DBListBox (VB4.0). If I use the e.g. Findfirst command I get the message:“The action was cancelled by

Creating Databases at Runtime

Question: I am designing an application that should be able to createnew databases in the specific format that it expects tosee. I have not seen anything anywhere on how to