You shoul set Format property to 'R' and remove '-' from the textbox value.
>
>I have a textbox that has a value of 9999-8000
>
>I would like to apply the following input mask dynamically '99999-999'
>
>I am expecting the output to be '99998-000' but it gives an output of '9999--000'
>
>how can I format the output to get '99998-000'
>
--sb--