Hi,


I'm currently toying with a chat client, like msn, but the user can currently spam the send button with nothing typed into box and get the result "example said: " continously, I'm trying to get it to blank out the send button / return key command when the field is empty, like MSN, so they can no longer return blank lines.

I've tryed several codes like:

Code:
If txtSend = "" Then
Do whatever

I've tryed calling msgbox/diabling the send button if it happens but it will do it even if i type characters into the box so i'm lost, also tryed various over codes.

It's a single line command box displaying the text typed in there into the main chat window(multiline):

Code:
txtMain = txtMain & "User says: " & txtSend & vbCrLf
for example, most likely the worst way to do it.

Any help be great, cheers.