I save the data that's in textbox1 in it's lostfocus event. I find one
problem. If someone types something in textbox1 then Closes the program
it isn't saved. I tried:
Private Sub Form1_FormClosi ng(ByVal sender As Object, ByVal e As
System.Windows. Forms.FormClosi ngEventArgs) Handles Me.FormClosing
TextBox1_LostFo cus(Me, Nothing)
End Sub
but for some reason it doesn't work. Any ideas? Is there another event
I could use to detect closing and make sure the save is done?
problem. If someone types something in textbox1 then Closes the program
it isn't saved. I tried:
Private Sub Form1_FormClosi ng(ByVal sender As Object, ByVal e As
System.Windows. Forms.FormClosi ngEventArgs) Handles Me.FormClosing
TextBox1_LostFo cus(Me, Nothing)
End Sub
but for some reason it doesn't work. Any ideas? Is there another event
I could use to detect closing and make sure the save is done?
Comment