N
Nathan Sokalski
I have a custom control with properties named MinValue, MaxValue, and Value
(all of which I have assigned a DefaultValue design-time attribute). The
Value property must be between (or equal to) the MinValue and MaxValue
properties in order to avoid a runtime error. I want to give an error during
the usage of the control stating this, as well as prevent it from compiling
under these conditions. Because this is something I have never done with
custom controls before, I need some help here. Thanks.
(all of which I have assigned a DefaultValue design-time attribute). The
Value property must be between (or equal to) the MinValue and MaxValue
properties in order to avoid a runtime error. I want to give an error during
the usage of the control stating this, as well as prevent it from compiling
under these conditions. Because this is something I have never done with
custom controls before, I need some help here. Thanks.