' Create a condition that fails validation if the value ' is less than 0 or greater than 255. Dim rc As Infragistics.Win.RangeCondition = _ New Infragistics.Win.RangeCondition(0, 255, GetType(Integer)) ' Get the ValidationSettings object that determines ' how the control will be validated. Dim vs As Infragistics.Win.Misc.ValidationSettings = _ Me.UltraValidator1.GetValidationSettings(Me.UltraNumericEditor1) ' Set the condition to the RangeCondition vs.Condition = rc