You should read up on SendKeys.send() method. The MSDN documentation on SendKeys can be found here: http://msdn.microsoft.com/en-us/libr....sendkeys.aspx

You can see an example here (scroll down to the last post): http://www.daniweb.com/forums/thread157703.html