I am having trouble clearing a text box in a VS 2005 VB project. I'm trying to do it the same way I've done it so many times before on other text boxes in various projects, but I just can't get it to clear, and cannot see what I'm missing.
The text box is named txtBale. Sometimes I key an "M" into this text box, and in my code I have a KeyPressEvent that sees that I keyed in that character, then calls another form which does a few things, then comes back to the calling form, and at that point I'm trying to clear the M from the text box--but never can get it to clear. I'm trying usual things such as:
me.txtBale.text = ""
...in various combinations, as well as a few other statements that I was not really familiar with---that didn't help anyway. The M just hangs in that text box on the screen---unless I manually press the backspace key on my keyboard. I think that the program IS putting the "" in the text box, but I think it is placing it to the right of the M that is showing on the screen. The reason I say this is because I tried saying:
me.txtBale.text = "77" (instead of = "")
and after it ran that statement, it showed "M77" in the text box.
Any idea what I'm missing here, or how to completely clear all data from the text box and from the screen? TIA