Text box is defined in following code:
What you have should work fine, assuming
I'd suggest you try this outside of your project to get a better indication of the actual issue.