Hi,
I have a user control which exposes three properties that the user can change - ValuesStart, ValuesEnd, ValuesIncrement. The default values of these are 0, 100, 10 respectively. These are conditional in that ValueStart needs to be less than ValueEnd, ValueEnd less than ValueStart and ValueIncrement greater than 0. I have put this logic into the property setter and have been testing the functionality of this through the designer and in code but when I do the following I get an error saying that ValuesStart has to be less than ValuesEnd:
Obviously it will be ok once the ValuesEnd part has been assigned, is there anyway to tell the code to wait until all values are set before validating?
Cheers.
I have a user control which exposes three properties that the user can change - ValuesStart, ValuesEnd, ValuesIncrement. The default values of these are 0, 100, 10 respectively. These are conditional in that ValueStart needs to be less than ValueEnd, ValueEnd less than ValueStart and ValueIncrement greater than 0. I have put this logic into the property setter and have been testing the functionality of this through the designer and in code but when I do the following I get an error saying that ValuesStart has to be less than ValuesEnd:
VB.NET:
control.ValuesStart = 130
control.ValuesEnd = 160
Obviously it will be ok once the ValuesEnd part has been assigned, is there anyway to tell the code to wait until all values are set before validating?
Cheers.