This article describes an All-In-One Code Framework sample that is available for download. This code sample demonstrates how to create a Windows Forms design time custom property tab for a property by using Visual C# and Visual Basic.NET.
To download this code sample, click the following link:
This sample shows how to create a Windows Forms design time custom property tab for a property that has an API under the System.Windows.Forms.PropertyGridInternal namespace. After you build the sample, you see a custom user control that is named "UC_CustomPropertyTab" in the Microsoft Visual Studio toolbox. When you drag the control onto the test form, the custom property tab appears in the Properties window of Visual Studio. To do this, follow these steps:
Drag the control from the Visual Studio toolbox onto the test form.
The design time custom property tab appears in the Properties window of Visual Studio.
Select the custom property tab icon (red “C”) to see the TestProp property.
Note For more information about how to create and to deploy the sample application, refer to the Readme.txt file that is included in the download package.
Windows Forms Designer
This code sample contains the following programming languages:
Visual Basic .NET
This sample application was created by using Visual Studio 2008 Service Pack 1.
Windows Forms Custom Property Tab
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://cfx.codeplex.com
How to find more All-In-One Code Framework samples
Microsoft corporation and/or its respective suppliers make no representations about the suitability, reliability, or accuracy of the information and related graphics contained herein. All such information and related graphics are provided "as is" without warranty of any kind. Microsoft and/or its respective suppliers hereby disclaim all warranties and conditions with regard to this information and related graphics, including all implied warranties and conditions of merchantability, fitness for a particular purpose, workmanlike effort, title and non-infringement. You specifically agree that in no event shall Microsoft and/or its suppliers be liable for any direct, indirect, punitive, incidental, special, consequential damages or any damages whatsoever including, without limitation, damages for loss of use, data or profits, arising out of or in any way connected with the use of or inability to use the information and related graphics contained herein, whether based on contract, tort, negligence, strict liability or otherwise, even if Microsoft or any of its suppliers has been advised of the possibility of damages.