An Example Using the Swatch Class

Using a visual class is as simple as clicking on the class name in the project and dragging it onto a form. At this point, you can manipulate the object based on the custom visual class just like you would any other class.

Let's take a look at a simple example of this with a form called Swatch. The form has a swatch object on it and buttons to control the stop watch.

Figure 5: Stop Watch when Stopped

Figure 6: Stop Watch when Running