devxlogo

Tip Bank

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

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

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

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

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

Passing Arrays to Functions

Question: How can I pass my array to function as parameter? Answer: A declaration would be as follows:Sub Foo (ArrayVar() as String * 4)The call to it would be as

Interform Communication

Question: I need to run a menu option from Form1 that actualy executes amenu option on Form2. What I have had to do is show Form2 and use SendKey to

Displaying Help

Question: How do you use the Common Dialog Box help. When I set all of the parameters and tried it, it didn’t display my helpfile. Answer: Did you set the