Tip Bank

DevX - Software Development Resource

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

DevX - Software Development Resource

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”

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

Retrieving Info From Listbox

Question: I have a listbox with some names loaded from a recordset, I have also associated the memberID with its associated name as in the following: lstMember.ItemData(lstMember.NewIndex)= rsMembers![MemberId]. I want

DevX - Software Development Resource

Replace Function

Question: I just started with VB6 programming and I need to write a short program doing the following: 1. Enter a sentence.2. From this sentence which was entered, pick any

DevX - Software Development Resource

Passing Command-Line Parameters

Question: I need to know how to pass a parameter from HTML to Standard EXE, and how to get these parameters in VB after you’ve passed them? Answer: Visual Basic

DevX - Software Development Resource

DSN-Less with ADO

Question: When I try to implement the code that is in MSDN, I receive Run-time error ‘446’ Object doesn’t support named arguments. Dim cn As New ADODB.ConnectionDim rs As New

DevX - Software Development Resource

Differences Between C++ and Java

Question: In C++, when a programmer intends to write: if (value == 1) { But, they often make the following mistake: if (value = 1) {…… Why doesn’t this problem