detect if objects got changed

  • Thread starter Thread starter Tee
  • Start date Start date
T

Tee

Hi,

I have few textboxes and combobox in a user control.
How can I detect if a user has changed the value of combobox and the text in
textbox?

I know that textbox has a CanUndo property that return true if user has
changed the text, but what about combobox?

I have heard of IsDirty, but have no idea how to use it, can anyone help? or
suggest a way to do it?


Thanks,
Tee
 
Textboxes have a TextChanged Event that fires whenever a user (or the
program) makes a change in the textbox.

Combobox also has a TextChanged Event, but also the click event works for
detecting any selections a user makes.
 
Actually, I think it is ServerTextChanged.


OpticTygre said:
Textboxes have a TextChanged Event that fires whenever a user (or the
program) makes a change in the textbox.

Combobox also has a TextChanged Event, but also the click event works for
detecting any selections a user makes.
 
OpticTygre said:
Textboxes have a TextChanged Event that fires whenever a user (or the
program) makes a change in the textbox.

Combobox also has a TextChanged Event, but also the click event works for
detecting any selections a user makes.

Additionally in these events you can compare the original value to the
current value and then you know if a change has been made. If you initially
set the text box Text to Jim and they changed it to to Jimm and then back to
Jim then no change has really been made although the TextChanged event has
fired twice.

SP
 
Back
Top