J
Joseph Byrns
I have a textbox that is bound to an integer type, when if I type something
into the box that is not an integer, then when I leave the textbox it's
contents will revert to the previous contents. This is fine and it is
exactly what I want. However, if I set the contents of the textbox in code
say: tb.text="test" then the contents of the textbox are not checked and I
am left with text in the textbox, is there any way in code that I can force
the binding datatype to be adhered to?
Thanks
into the box that is not an integer, then when I leave the textbox it's
contents will revert to the previous contents. This is fine and it is
exactly what I want. However, if I set the contents of the textbox in code
say: tb.text="test" then the contents of the textbox are not checked and I
am left with text in the textbox, is there any way in code that I can force
the binding datatype to be adhered to?
Thanks