This article has been archived. It is offered "as is" and will no longer be updated.
This article describes an All-In-One Code Framework sample that is available for download. This code sample demonstrates how to create your own Custom UI Type Editor in Windows Forms Designer for a special property of your class.
To download this code sample, click the following link:
This sample creates your own TypeEditor that inherits from UITypeEditor for the property.
Open the solution and build all projects.
Drag UC_CustomEditor from Visual Studio toolbox onto the test form (MainForm Form1).
In the Visual Studio property window of UC_CustomEditor, locate a property that is named “Cls”.
Click the button of Cls property, the custom UI type editor form pops up.
Click the OK button, the value will be written to the Cls property.
Note For more information about how to create the sample application and how to deploy the sample application, see the Readme.txt file that is included in the download package.
Windows Forms Control Designer
This code sample contains the following programming languages:
This sample application was created by using Visual Studio 2008 with Service Pack 1 installed.
What is All-In-One Code Framework?
All-In-One Code Framework shows most Microsoft development techniques by using code samples in different programming languages. Each example is carefully selected, composed, and documented to show one common code scenario. For more information about All-In-One Code Framework, visit the following Web site: http://1code.codeplex.com
How to find more All-In-One Code Framework samples