Making a custom ImageKey property?
On the Button class there is a ImageKey property, which is simply a string, i.e. a key in the ImageList, which is also in the Button class. I understand this much, but if I am doing my own implementation of some property which is called MyCustomImageKey of type string, I am not presented (in VS .NET 2005 design property grid) with the options of the ImageList keys, as one do if it is the Button implementation of the ImageKey.
How do I enable this feature? That is, ensuring that the possible values for some string property in the property grid are limited to e.g. the keys from an ImageList?
I am quite sure that it has something to do with attributes but how? I need some clues to searches and resources where I can get information about this.
Thanks, Jacob.
|