devxlogo

Tip Bank

Padding Effect

Question: I’m trying to create a padding effect around this box of text that glides on to the screen from the right. I need to have it so that the

Extra DLLs as a Result of Conditional Compilation

Starting with Visual Basic 4.0, you can add conditional compilation statements and use them to create different versions for 16-bit and 32-bit environments or to call debugging DLLs while testing

Read and Write Arrays Quickly

You can read and write arrays quickly from files using Put and Get. This approach is faster than reading and writing the array one entry at a time: Dim arr(1

Print Gray Lines and Areas

Black and white printers cannot print gray lines, but they can dither to create gray areas. To create a gray border around an area, draw thin gray boxes with DrawStyle

Trick Setup Wizard

Don’t you hate that VB5’s Setup Wizard doesn’t include all the files you reference in your application? For example, if you access a picture or animation file at run time

Loading Graphics Before You Display Them

Many sites include rollover effects to make images change when the mouse moves over them. However, sometimes there’s an unsightly delay while the second graphic is downloaded from the server.