Hello Lidya, thanks for your kind reply but I never said that I have a textbox in my program... I am sending the keys to Internet Explorer and yes, it has focus else the output never even had those xyz things...

The problem is with SendKeys function and I need an alternative or improvement to Sendkeys...

Thanks anyways