Create your own class of validated positive integer, and create a custom
converter for the type. The custom converter can return 'invalid' for any
string that would convert to a negative integer.
For details on custom converters, see:
http://msdn.microsoft.com/en-us/library/ayybcxe5.aspx
"Nathan Sokalski" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have several properties in my custom control that I only want to allow
>positive values for. Because the unsigned integral types (such as UInteger,
>UShort, etc.) are not CLS compliant, it gives an error when run. Is there a
>way to validate that only positive values were entered if I use the signed
>types? Thanks.
> --
> Nathan Sokalski
> (E-Mail Removed)
> http://www.nathansokalski.com/
>