What is the component that allows me to create a custom properties form? I mean, 开发者_StackOverflow中文版a component like this:
I'm trying to make an editor, so I need that component.
This is done via quite a few things. If you're working with the PropertyGrid
, I recommend reading: Getting the Most Out of the .NET Framework PropertyGrid Control.
In particular, "Providing a Custom UI for Your Properties" describes the process of creating a custom UITypeEditor. In addition, it discusses TypeConverter
and the attributes used by the PropertyGrid
for handling custom type editing.
You'll have to look into UITypeEditor
and the EditorAttribute
. There are plenty of examples out there.
精彩评论