1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| Dim traiteLaFonction As Boolean = True
Private Sub TextBox1_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.LostFocus
perdfocus()
'MessageBox.Show("TextBox1.LostFocus")
End Sub
Function perdfocus() As String
Dim voir As String = TextBox1.Text
If traiteLaFonction = True Then
MessageBox.Show(TextBox1.Text)
Return voir
Else
Return Nothing
End If
End Function
Private Sub Form1_FormClosed(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
traiteLaFonction = False
'MessageBox.Show("Me.FormClosed")
End Sub |
Partager