Tip Bank

DevX - Software Development Resource

Creating Help Files for VB

Question: I am new to Visual Basic and wanted to know how to write those nifty little help files. Answer: Help files are fairly easy to create. All you need

DevX - Software Development Resource

Calculating Elapsed Time

Question: Do you know an algorithm that will give me the elapsed time froma beginning and end date/times (day:hh:mm:ss)? Answer: The DateDiff function, included with VB 3 and 4, will

DevX - Software Development Resource

Creating a Sorted List

Question: I am creating a touch screen directory for a hospital. All of departments are listed in alphabetic order as a button which, when pressed displays a map of the

DevX - Software Development Resource

Filling DBGrid Manually

Question: Id like to no how you address text to the DbGrid1 custom control. For example the Grid control addressesby How would I do this with the DbGrid1 custom control

DevX - Software Development Resource

Checking for Existence of a File

Question: How do you check to see if the name of a file you want to RENAME a file to already exists? Answer: Here is a great example of how

DevX - Software Development Resource

Selecting Visual Basic vs. Visual C++

Question: Where would you use Visual Basic over Visual C++? Answer: Well, personally, I’d almost always use VB over VC++ for a few reasons: Ease of use – it’s much

DevX - Software Development Resource

Running 32 Bit Applications

Question: I tried running a “hello world” VB4 32bit program from Win32 in Windows 3.1 (on a machine that has VB3 Pro and not VB4), which caused the following errors:VBRUN40032.DLL

DevX - Software Development Resource

Using Large Dynasets

Question: I have a VB app that I use to correct records on an Rdb database on a VAX. I am using Microsoft’s TCP/IP and DEC’sODBC drivers. Our databases can

DevX - Software Development Resource

Definition of hDlg

Question: I want to make a list-combo visible but, I can’t get using API function :SendDlgItemMessage.What is “hDlg” in the following declaration?Declare function SendDlgItemMessage Lib “User” (Byval hDlg as Integer,