Ok, well I'm writing this chat program and I have it all functioning, still yet to add features, but I want to make it so the text you enter into the edit window will be sent when you hit enter. So you can just type a message and hit enter to send it instead of having to click send. I know two ways I could do this and they seem a bit ridiculous, I think I'm overlooking an easier way and that's why I'm posting. The ways I have in mind are, polling for the enter vk code and when its found send a message to the button to execute its function, OR registering a hotkey, but both of these seem way to inefficient and my question to you is, Is there a better way? Thanks again.