Its not quite game related, but I have a quick chat program where I have an edit box to enter text. When the return key is pressed, the text is processed and the contents of the text box cleared. However the TEdit box seems to have a peculiar feature that if the return key is pressed, the Windows error sound is given. Is there a way around this? Setting the value of key to 0 in the keydown event doesn’t seem to help. A TMemo might be a solution, but that seems to create an extra line of text after pressing return that I can’t get rid of.

Any help appreciated,

Matt.