* "aussie rules" <(E-Mail Removed)> scripsit:
> What I want to do is somehow know that the user has edited a text box, so
> that if they close the form, i can ask them if they would like to save there
> changes.
\\\
Private m_Dirty As Boolean
..
..
..
Public Sub TextBox_TextChanged( _
ByVal sender As Object, _
... _
) _
Handles Me.TextBox1.TextChanged, Me.TextBox2.TextChanged, ...
If DirectCast(sender, TextBox).TextLength > 0 Then
m_Dirty = True
End If
End Sub
..
..
..
If m_Dirty Then
...
Else
...
End If
///
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
|