Check if TextBox changed on leave event

  • Thread starter Thread starter richlm
  • Start date Start date
R

richlm

I want to check if the text in a text box has changed in the TextBox_Leave
event.

I can do this by hooking up TextBox_TextChanged() and settting a flag, and
check that flag in TextBox_Leave().

Is there a tidier way to do this?

What I would really like is a custom EventArgs parameter to an event
containing an IsTextChanged property.

Richard.
 
Hi richlm,

What I would suggest is to hook up text box Enter event. On this event set
textbox's Modified property to false. The on Leave check it again. If it is
*true* the text box has been modified
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top