O'Reilly logo

Developing Microsoft® .NET Controls with Microsoft Visual Basic® .NET by John Connell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding Type Editors

While a type converter converts from a type to a string and back again, a type editor provides a custom user interface to permit the programmer to set a property, as you saw in Chapter 4 when we talked about some type editors built into the .NET Framework. In this chapter, we’re going to get into custom type editors. For example, say you want to provide a list of all the valid drives on a current machine. You might want the user of the control to save information to a legitimate drive. By building a custom type editor, you can display an interface that contains all the logical drives. When the property is selected in the Properties window, a small box with an ellipsis is displayed, providing a visual cue that there ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required