Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi Want to write a example of textbox other windows with SendMessage API
thank
Posted
Comments
Karthik_Mahalingam 9-Feb-14 1:33am    
can u pls provide more info.
alirezamansoori 9-Feb-14 1:37am    
What pls?
agent_kruger 9-Feb-14 6:21am    
sir, please explain what are you trying to achieve?

If you have got the SendMessage and FindWindow dlls imported, here is what you can try
C#
hwnd = FindWindow("Notepad",NULL)
SendMessage(FindWindowEx(hwnd, NULL, "Edit", NULL), WM_SETTEXT, 0, (LPARAM)text);
 
Share this answer
 
thank
I find the Spy++, I use windows
sample
 
Share this answer
 
Comments
CHill60 9-Feb-14 8:39am    
If you were trying to respond to Abhinav S you should use the "Have a Question or Comment" link next to his post and delete this non-solution. Spy++ will certainly give you the window handle but so will FindWindow ... at least the latter can be easily used within your program

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