Getting Blank text value on Textbox Keypress [modified]
-
Hello Everbody, M getting a problem on textBox Keypress.When i pass 1st Character in textBox on keypress it takes textBox.text="" value.Can Anybody provide Solution to the problem please its menance bug. Thanks in advance Thanks Christian Graus Problem [Solved]
modified on Saturday, September 12, 2009 3:45 AM
-
Hello Everbody, M getting a problem on textBox Keypress.When i pass 1st Character in textBox on keypress it takes textBox.text="" value.Can Anybody provide Solution to the problem please its menance bug. Thanks in advance Thanks Christian Graus Problem [Solved]
modified on Saturday, September 12, 2009 3:45 AM
The keypress event allows you to block the text from going on to the textbox, Handle the keyup event instead, if you want the key's contents to already be reflected in the textboxes contents. It's not a bug, at all. (edit) as I think about it, the textchanged event is the one you want, if you want to know when the text in the textbox changes.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Hello Everbody, M getting a problem on textBox Keypress.When i pass 1st Character in textBox on keypress it takes textBox.text="" value.Can Anybody provide Solution to the problem please its menance bug. Thanks in advance Thanks Christian Graus Problem [Solved]
modified on Saturday, September 12, 2009 3:45 AM
use KeyUp event. Keypreess fires just before the Text is changed. :rose:
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.