
Avoid Errors on Assigning Null Values
Whenever you read a database field, concatenate an empty string to the field value before assigning it to a variable or control property. This prevents the program from giving an

Whenever you read a database field, concatenate an empty string to the field value before assigning it to a variable or control property. This prevents the program from giving an

By default, VB passes all arguments to a procedure by reference, which means the procedure can change the values of the variables you pass. However, there

You can display a logo in the middle of your MDI form. The logo stays in the middle even when the MDI form is resized. After creating your own MDI

The best way to work with the tab control is to set up a different frame for each tab. If you set the frames to be indexed, you can quickly

You see trailing ellipses (…) when VB truncates either the expression or data portion of a data tip (the mouse-hover watch value you get while debugging). This is great if

If you want the user to be able to select from a fixed range of numeric values, you have a number of choices. In VB6, you can use the UpDown

In graphical applications, you often need to know the angle between two lines. You can move their intersection point to the origin easily, so all you need to do is

Copying a piece of information into the clipboard is as easy as calling the Clipboard.SetDataObject: you can pass this method a string, an image, and so on. If you pass

An MDI child form is a regular form whose MdiParent property points to its MDI container form, so the code that creates and displays a child window is very simple: