Tip Bank

DevX - Software Development Resource

Connecting Network Drives

Question: When I issue the command ‘NET USE’ in msdos, I get a message that a specific drive is disconnected, how can I connect that drive in VB? If I

DevX - Software Development Resource

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

DevX - Software Development Resource

Closing a Data Control

Question: I am using the data control through the Standard Version of Visual Basic 4.0. The data control is linked to a table in our database and when I try

DevX - Software Development Resource

Sharing Data Between Forms

Question: I have a VB app that uses multiple forms. On the first form, I entercustomer information. The other forms calculate the cost of my services tomy customer. I would

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