Chapter 5. Building Your Own VB Control
One of the great strengths of VB is its powerful visual builder (IDE) environment. It is easy to build complex and sophisticated user interfaces by just dragging a few components onto a form and writing a little code to control their interactions. However, if no control does exactly what you want, it appears at first to be quite difficult (or impossible) to create a new control with these new properties. In this chapter we carry the idea of OO programming a little further by showing how easy it is to derive a new ActiveX control from the existing ones in VB6. We'll show you how to do this in VB.NET in Chapter 7.
A Highlighted Text Field
Suppose we would like to build a text entry field that always highlights ...