title: check whether a textbox value changed in .net
body: <p>I am using the following code to check whether the textbox value is changed. The text box value is initially retrieved from the database in a button click event.</p>
  
  <p>Requirement:
  I want to update another object(objTest2) property if the tbOffienotes textbox is changed. Further, I want to get only the newly entered text from the text box.</p>
  
  <pre><code>If Not tbOfficeNotes.Text.Equals(objTest.OfficeNotes) Then
          Dim strComment As String = tbOfficeNotes.Text.Remove
                                              (0, objTest.OfficeNotes.Length) 
          'Save the test2 object
          objTest2.Comment=strComment
  
  End If
  </code></pre>