MaskColor for Visual Basic 6.0 Users
The MaskColor property in Visual Basic 6.0 has no direct equivalent in Visual Basic 2008, however you can use graphics methods to achieve the same effect.
In Visual Basic 6.0, the MaskColor property of a CheckBox, CommandButton, or OptionButton control was used to define a color that would become transparent, allowing a background image to show. To use this property, the Style property had to be set to Graphical, the UseMaskColor property had to be set to True, and a bitmap had to be assigned to the Picture property.
The following code shows the differences in coding techniques between Visual Basic 6.0 and Visual Basic 2008.
' Visual Basic 6.0
' Assumes a picture has been assigned to the Picture property
' and that the Style property has been set to Graphical.
Command1.UseMaskColor = True
Command1.MaskColor = vbWhite