Create a sub in the form that handles all of the textbox's.
Eg
Sub CheckForChanges (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtbox1.TextChanged, txtbox2.TextChanged
ischanges = true
End Sub
Put each txtbox in there and then in the sub have a global variable as boolean. Then when you close the form see if the ischanges is true so you can save changes.
Hope you understand this
Steve