Windows Develop Bookmark and Share   
 index > Windows Forms General > Textbox changed event question
 

Textbox changed event question

On my form i currently have a textbox and im not quite understanding the changed event totaly, What im not getting is, is the event triggerd even if one key has been pressed when it has focus? what im trying todo is wait untill they have stoped typing in it for say 3 seconds befor i want todo something in the changed event, is there a way todo it simply?
Daten  Wednesday, September 09, 2009 8:47 PM
The change event occurs each time the text in the control changes. So if the user presses a key that causes the text to change (like a letter or number), then the event will occur.

The only thing I can think of to accomplish what you need is to set up a timer when the text box gets focus (the Enter event) and the respond to the timer event instead of the change event.

Hope this helps.
www.insteptech.com ; msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!
  • Marked As Answer byDaten Wednesday, September 09, 2009 8:56 PM
  •  
DeborahK  Wednesday, September 09, 2009 8:55 PM
The change event occurs each time the text in the control changes. So if the user presses a key that causes the text to change (like a letter or number), then the event will occur.

The only thing I can think of to accomplish what you need is to set up a timer when the text box gets focus (the Enter event) and the respond to the timer event instead of the change event.

Hope this helps.
www.insteptech.com ; msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!
  • Marked As Answer byDaten Wednesday, September 09, 2009 8:56 PM
  •  
DeborahK  Wednesday, September 09, 2009 8:55 PM
Thank you for clearing that up for me
Daten  Wednesday, September 09, 2009 8:56 PM

You can use google to search for other answers

Custom Search

More Threads

• TextBox.ShortcutsEnabled Property
• problem with listbox and win forms
• help.... please!!!!
• Treeview with Icons
• How to apply IE installation or upgradation on Client Computers using WDS?
• Change RichTextBox Maxlength for Carriage returns
• Problems querying Excel spreadsheet via ODBC or OLEDB
• how do I Change Rich Text Box Font to downloaded font
• General question about .NET Window applications and traditional applications
• Generic Method