Without getting overly complicated, I suggest using an boolean "in range" indicator instead of the dialog box. First, its less obtrusive, and secondly you can use the value of the indicator to gate the function of other controls.
In your instance, in the "value changed" event for the Boolean wrap your code in a Case structure with an "in range" local variable wired to the Selector. If the value is in range, execute the code, else -- maybe now alert your user with a friendly dialog box stating that Digital Control X must be with in certain ranges. Be sure to leave the Boolean control outside the Case structure so that it can be "read".
Aternately, you could programmatically set the range of the Digital control so that the user could not enter a value that w
as out of range.