Determining whether a modification was made in textboxes and comboboxes bound to data

What's an easy way to determine whether the data in a bound textbox or combobox was changed?  I'd rather not have to constantly check each control fired the "textchanged" event because that is pretty worthless because it will always fire when the initial data is loaded or you move to a new record.  It seems like there out to be a property for the bindingsource to indicate whether it has been modified or not.
tsb5270Asked:
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.

GivenRandyCommented:
How about the KeyDown or the KeyUp?
Alexandre SimõesManager / Solutions ArchitectCommented:
After changed, TextBox raises the Validated Event.
Handle it like you need, to know that the text on that TextBox has changed.

Alex :p

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
ptakjaCommented:
You could also use the AddHandler & RemoveHandler keywords to control when the event fires. To do this, you need to REMOVE the "Handles Textbox1.TextChanged" syntax in your event handler.

For example,

In the Form Load event handler you could add this code for each textbox. (Note that you can use the same event handler for ALL textboxes.)

RemoveHandler TextBox1.TextChanged, AddressOf(Textbox1_TextChanged)


Then when initial loading is complete and databinding is all done, execute this line:

AddHandler TextBox1.TextChanged, AddressOf(TextBox1_TextChanged)

Likewise when you change records. You can execute the same code.

1) Remove Handler
2) Change records
3) AddHandler


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
Visual Basic.NET

From novice to tech pro — start learning today.