Well, I haven't really gotten into key events, you could always use good old visual basic SendKeys calls, but if you want to do it through API, check out MSDN for the proper syntax on the whole SendMessage bit, but are you sure you're not supposed to use the.. I think it's called keyboardevent or something API to do what you want?