devxlogo

Tip Bank

Scream Through Searches With Byte Arrays

This subroutine shows how byte arrays can speed a search though a file.The routine is called with the file name, a string to look for, a flagthat tells it to

SS3D2.VBX And Win95 GPF

Running applications written in VB3 in the WIN95 OS is not always aclean conversion. This code would work fine in Windows for Workgroups 3.11,but would GPF in WIN95. SS3D2.VBX, which

Reduce Flickering During Form Loading

When loading a form, reduce the “flicker” and “flash” of the GUI by using these Windows API functions: ‘Declarations Section#If Win32 Then Declare Function LockWindowUpdate _ Lib “user32” _ (ByVal

Programmatically Close Another Program

To have a program programmatically close another program, use this code: ‘ Close an existing program Title = “VBApp” ihWnd = FindWindow(0&, Title) ihTask = GetWindowTask(ihWnd) iRet = PostAppMessage(ihTask, WM_QUIT,

Parsing a Variable Number of Arguments

Optional parameters are a great new feature in VB4, but the ParamArraykeyword is an overlooked addition to function and subroutine declarations.The ParamArray keyword allows an unspecified number of Variantparameters to

How to Calculate the X, Y of any Position on a Circle

The DegreesToXYsubroutine, part of CodeBank’s standard procedurelibrary, calculates the X (horizontal) and Y (vertical) coordinatesof any point, measured in degrees, on the circumference of a circleor ellipse. As you can

Elastic Fonts

Designing monitor resolution-independent applications is a frequentproblem Visual Basic programmers face. The simplest solution isto design forms at the 640 by 480 resolution found in most lap-topcomputers. Such a form

Close VB Before Compiling

When you’re finished tinkering with your apps, close and restart VBbefore making the final EXE. This simple action can reduce the size ofyour EXE by 10 to 30 percent (many