I have an application that contains certain editable fields (textboxs) and what i want to do is know when someone has changed or entered new text.
What i done was in the 'TextChanged' part of a text box was this:
Private Sub txtCNotes_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtCNotes.TextChanged
ChangesMade = True
now 'ChangesMade' is a global boolean variable which in its first state is set to false and then true if a change is made.
no on the exit of the program or if they navigate away from the record i have this bit of code:
If ChangesMade = True Then
MsgBox("Do you wish to save your changes?")
but the problem is it is just giving that message, regardless of any changes or not.
I wondered if anyone had any ideas?