Last post Sep 22, 2008 10:08 PM by Nai-Dong Jin - MSFT
Sep 17, 2008 02:59 AM|oozsakarya|LINK
I am trying to write a custom control for asp .net. As you know, when you click on items property of ListBox server control, a form is opening and you can enter new list items by using this form. I want to update this form.
For example I have a property whose name is Related Controls, in design view when the user clicks this property a property window will open and user can select any of the form's controls. And I want to add extra fields like message, etc.
How can I do this?
Sep 22, 2008 10:08 PM|Nai-Dong Jin - MSFT|LINK
From your description, it seems that what you want is the Type Converters in custom server control.
A type converter can provide a list of values for a type in a Properties window control. When a type converter provides a set of standard values for a type, the
value entry field for a property of the associated type in a Properties window control displays a down arrow that displays a list of values to set the value of the property to when clicked.
When a property of the type this type converter is associated with is selected in a design-time environment property browser, the value entry field will contain
a button that displays a drop-down list of the standard values for the property type that you can select from.
For more information on how to use the type converters, see: