Click here to Skip to main content
15,898,599 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900