title: changing button's text after click vb.net
body: <p>This is kinda simple, and really silly. but I can't see what I am missing..</p>
  
  <pre><code>    Private Sub btnmode_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnmode.Click
      If Me.btnmode.Text = "COMMAND MODE" Then
          Me.btnmode.Text = "DATA MODE"
          sPort.Write("$$$")
      End If
      If Me.btnmode.Text = "DATA MODE" Then
          Me.btnmode.Text = "COMMAND MODE"
          sPort.Write("$$$" &amp; vbCr)
          sPort.Write("exit" &amp; vbCr)
      End If
  
  End Sub
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/DZciC.jpg" alt="enter image description here"></p>
  
  <p>with this code, I should be able to change its text after clicking. but why is it not? nothing is happening.</p>