Check bound textbox contents

  • Thread starter Thread starter Joseph Byrns
  • Start date Start date
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
 
I seem to have fixed the problem, if I move focus to another control
everything works fine.
 
Back
Top