devxlogo

Tip Bank

Providing Multiple Colors

Question: I having trouble using strings and text. I am writing a document creation system and all the text in between the “” char. would be red. All other text

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

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

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

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

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,

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