Object reference is not set to instance .I got above error when my program runs. It gives error at SendKeys.SendWait method.
It gets proper input but didn't work. Actually in my scenario I want to send received data to activated window (i.e word , excel , notepad , or any application text box which is activated at that instance).
Help me please, Thanks
here is code,
Hide Copy Code
In above code "res" is string received from socket and i want to send this string to activated window i.e text editor opened at runtime.