Tip Bank

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

DevX - Software Development Resource

PEEKing and POKEing in VB 3.0

Question: How I peek and poke on Visual Basic 3.0, or is there a replacement available for the INP/OUT functions? Answer: In my File Archives area, I have a file

DevX - Software Development Resource

Benefits of Using Control Arrays

Question: Is there an advantage to using a control array instead of using x number of labels, textboxes, etc ? Answer: There are several advantages to using control arrays. First

DevX - Software Development Resource

Viewing Available Properties

Question: I am new to VB programming and have noticed thatthere are a lot of properties for an item that are not listedin the property box (e.g. clear,delete item,add item,select,etc)Is

DevX - Software Development Resource

Keeping a Window on Top

Question: Is there a method of keeping a window “on top” similar tothe Microsoft Office toolbar and various other applications.I need to be able to have a form iconized, then