Tip Bank

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

Passing to Functions

Question: Just started crunching similar code into functions. How do you pass an arguement to a function that references a control? It’s prob really simple eh? Answer: Here is an

DevX - Software Development Resource

Forcing List to Drop

Question: I have loaded a ComboBox with several items. When running, if I click on the down arrow the items will display in the drop down list box OK and

DevX - Software Development Resource

Disconnecting a Network Drive

Question: I understand how to connect a network drive using the WnetAddConnection API function; however, I do not know how to disconnect the network drive. How do I go about

DevX - Software Development Resource

Using Drawing Methods From DLL

Question: I wanted to create a front end GUI panel using VB. This panel would have command buttons, and a picture box. When the user clicks on a command button,

DevX - Software Development Resource

Checking for File Extension

Question: What’s wrong with this code :if file1.filename=”*.bmp” then picture1.LoadPicture(file1.filename) Answer: I’m guessing you’re trying to check the selected filename to see if it ends in .BMP, right? The problem