When I have an EDIT box in my program, and I want to send the text to a window, what do I do. Example:

I have an instant message(AOL IM), and the user is Example. How would I send the keys from my EDIT box to the Example instant message?