The features described in this topic are obsolete
and should not be used in new IDL code.

Handling Events within Visual Basic

The VBPaint example uses direct graphics to create a simple drawing program. A direct graphics window is used to respond to events within VB. Each click event will get the (x,y) location within the window, and modify the color of the current pixel in the image. See the following figure:.

This example illustrates the following concepts:

.

Figure 7-11: VBPaint Example

Handling_Events_within_Visual_Basic-11.jpg

Example Code
See the files located in the examples\docs\ActiveX\VBPaint directory of the IDL installation directory for example code.