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

Examining .NET Type Editors

While a file name is not a native type, we can use the .NET framework Editor attribute to tell the framework where to find the editor for the file name type.

<Category("Storage"), _
    Description("Where to store configuration"), _
    Editor(GetType(System.Windows.Forms.Design.FileNameEditor), _
					GetType(UITypeEditor))>_
    Public Property ConfigFile() As String

Importing Editor Namespaces

Before we get into the type editor, I want to give you some information that will save you quite a bit of time when you’re programming with the .NET Framework. Because FileNameEditor lives in the System. Windows.Forms.Design namespace, you might think that simply importing the Windows.System.Forms namespace will do the job. Always keep in ...

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