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
 
Back
Top