Microsoft DirectX 9.0


This topic applies to Windows XP only.

The ColorKey property sets or retrieves the color key that the video renderer is using. The color key is used when the video renderer draws to an overlay surface


objMSVidCtl.ColorKey As OLE_COLOR


This property takes no parameters.

Error Codes

If the property fails, an error is raised and Err.Number is set to a value other than zero.

Return Values

Returns an OLE_COLOR value.


This property is read/write. In Visual Basic, you can set this property at design time using the Properties dialog.

See Also