Limit the value of a property in Toolbox
Hi all,
somehow it is possible to limit the value of a property in the toolbox. For example if one tries to enter a negative number for tabindex you get a message.
I am interested in using this feature but can not find how to do this. Is there a special attribute or trick for this?
thx,
Jef
Re: Limit the value of a property in Toolbox
Inherit from the control and limit the properties as needed.
Re: Limit the value of a property in Toolbox
Well, my question remains: how can the limiting be done? Normally I use exceptions but this does not work for the designer is there some other trick?
thank you, Jef
Re: Limit the value of a property in Toolbox
I think you have to use your own type converter for the property, but easier way could exist.