C
cj
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_FormClosing(ByVal sender As Object, ByVal e As
System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
TextBox1_LostFocus(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_FormClosing(ByVal sender As Object, ByVal e As
System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
TextBox1_LostFocus(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?