This wouldnt work in my code:
VB Code:
  1. Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs)
  2.        
  3.         If (Asc(e.KeyChar)) = 13 Then
  4.             txtchatwin.Text = txtchatwin.Text & vbCrLf & (username) & ":" & " " & chattext.Text
  5.             chattext.Clear()
  6.         End If
  7.     End Sub

i would keep on pressing enter with nothing happening, it used to work and it has no build errors when i run it. whats the matter with it?

Thanks