Tip Bank

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

DevX - Software Development Resource

Creating File Dialogs

Question: I am a beginer in Visual Basic 3.0. I am trying to make a “Text Editor” program.Can you tell mehow to make “save” and “open” menus (using dialog box)I

DevX - Software Development Resource

Getting Network Login ID

Question: How can I query the login name of a Novell user from VB? Answer: Try this:un$ = space(255)unsize% = len(un$)a = WNetGetUser(un, unsize)MsgBox trim(un)The WNetGetUser API declaration is: Declare