Can I get notification of a textfield's contents' change event?

Using C#, I'd like to get the event which fires when a textfield's text changes.  For example,
if the text in the field is "12", but, while the value is selected, I type "9" to overwrite the entire the "12".  Isn't there an event which fires at that moment?  If so, I'd love to hear what it is and how to get notified of this event firing.


Thanks,
Bob
ba272Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ba272Author Commented:
I followed both links, but can't figure out how to associate the code with a particular textfield.  Normally, it seems like the name of the control gets inserted before the event type.

For example, I have a button called "newBtn".  And when I double click on the button, in Designer mode, an event is created called the "newBtn_Click" event.  But how do I associate the OnTextChanged event with the actual control who's text I'm trying to assess?  Do I need to create a new object which inherits from TextField?


Thanks,
Bob
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

tusharashahCommented:
Double click on your TextBox and you'll see OnTextChanged event...

in addition to that you also need to set AutoPostBack=true for TextBox from design view.

-tushar
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rodney HelsensCommented:
From design view...You could right click on the textbox, and select properties, then select the little lightning bolt (events) in the properties window (on the right hand side), clicking on this will create your method.

0
Rodney HelsensCommented:
There is a concept of split points here @ ee, this would be an ideal situation to have used it, IMO

just sayin' is all

0
ba272Author Commented:
Sorry.  I didn't know that was possible.  I'll do that from now on.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.