title: e.keychar is not a member of system.eventargs - Visual Basic 2010
body: <p>I'm trying to block my text boxes in order that they can only accept numbers. I was looking in the Internet and I found this code</p>
  
  <pre><code>Private Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) HandlesTextBox1.TextChanged
    If Not Char.IsNumber(e.KeyChar) And Not Char.IsControl(e.KeyChar) Then
      e.Handled = True
    End If
  End Sub  
  </code></pre>
  
  <p>The thing is that there is an error message displayed:</p>
  
  <blockquote>
    <p>e.keychar is not a member of system.eventargs</p>
  </blockquote>
  
  <p>I already imported the <code>Imports System.EventArgs</code>. Any idea how to fix this?</p>