Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hot keys
#2
I'm not completely sure, but try studying the Keypress sub.
Code:
Private Sub txtChat_KeyPress(KeyAscii As Integer)
    If KeyAscii = vbKeyReturn Then
        If LenB(Trim$(txtChat.Text)) > 0 Then
            Call GlobalMsg(txtChat.Text, White)
            Call TextAdd(frmServer.txtText, "Server: " & txtChat.Text, True)
            txtChat.Text = vbNullString
        End If
    End If
End Sub

That runs when enter is pushed. Uhm. Hope that helps any.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)