This wouldnt work in my code:
VB Code:
Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) If (Asc(e.KeyChar)) = 13 Then txtchatwin.Text = txtchatwin.Text & vbCrLf & (username) & ":" & " " & chattext.Text chattext.Clear() End If 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




Reply With Quote