I'm trying to have my winform check for changes in textboxes, combo boxes and masked textboxes. I've found a way for one textbox, but how can I do this for all of the textboxes as well as ones on other tabpages?
Private Sub Textbox_Textchanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EVENT_LOCATION.TextChanged
'Shows that most recent changes were not saved
saved = False
End Sub
Private Sub PFC_XPRESS_FormClosing(sender As System.Object, e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
Dim Result As DialogResult
If EVENT_LOCATION.Text <> "" Then
'If the most recent changes are unsaved, we have this option
If saved = False Then
Result = MessageBox.Show("Would you like to save changes?", "Confirm Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If Result = Windows.Forms.DialogResult.Yes Then
Call Save_Event()