Dear Experts,
i am stuck at the problem , I am developeing an application which is being used for transfer unicode string to any other application like notepad, ms word or wordpad, etc... which one is get selected data should be gets transferd.
plz suggest me.
I used this code
intWindowHandle = GetForegroundWindow() 'get Current Active Window
If GetWindowText(intWindowHandle, strWindowText, intCharCount) > 0 Then 'If It Has A Caption
Label1.Text = strWindowText.ToString() 'Retrieve Window Caption
'Retrieve Window Handle
Label2.Text = intWindowHandle.ToString()
SendMessage(intWindowHandle, WM_COPYDATA, IntPtr.Zero, txtText.Text) 'Send string to the selected window
End If
////////////
but string not being sent
thanks in advanced