devxlogo

Tip Bank

Control Focus

Question: When a control has focus, is there some way to determine which control had focus just before it? Answer: Nope, there isn’t any way to do that. But, I

Access 97 vs. 2000 Databases

Question: I have a program in VB6 using an Access 97 database. The code I use for all my procedures is as follows: Dim db as DatabaseSet db = DBEngine.Workspaces(0).OpenDatabase(“biblio.mdb”,

Accessing Online Databases

Question: I have been using Visual Basic to manipulate databases for some time now and I consider myself skilled at it. The next challenge presented is to establish a connection

Changing Label Caption of a Textbox

Question: I am an extreme newbie with VB. How do I change the caption of a label to the value of a textbox? Answer: Substitute the name of the Label

Image Storage in Access 97

Question: I have an Access 97 database with an OLE Type field containing bitmaps loaded with the LoadPicture() function. This works fine and the images turn up as “Bitmap Image”

Finding the Calling Procedure

Question: Often I place a Break Point in a Function or Procedure for Debugging purposes.How I can find the immediate calling procedure?Or, better how I can find all the previous

Random Pictures

Question: How would I get a different picture to pop up every 3 seconds in a different position? Answer: It’s pretty simple, actually: Make a form with an image/picturebox control

App Not Running on Other Machines

Question: After compiling my VB app, and installing it on my machine, it will run. But, when I install it on my professor’s machine at school, it doesn’t work at

Arrays of Arrays

Question: Is it possible to have an array of character arrays? What about anarray of multidimensional character arrays? Answer: Java arrays are first-class objects. They can be referenced byObject reference