|
-
Feb 9th, 2000, 10:51 PM
#1
Thread Starter
Addicted Member
I am wanting to get a string from one application and open another application and pass it to a label. I know how to find the handle of the new app but am not sure how to reference the other application text box and send the string. Any Ideas?
-
Feb 9th, 2000, 11:11 PM
#2
You can use SetWindowText
Public Declare Function SetWindowText Lib "user32.dll" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long
SetWindowText hwnd, strMyText
------------------
Marty
What did the fish say when it hit the concrete wall?
> > > > > "Dam!"
-
Feb 10th, 2000, 12:16 PM
#3
Thread Starter
Addicted Member
Thank you. I will try it.
-
Feb 10th, 2000, 12:50 PM
#4
Thread Starter
Addicted Member
I can set the sindow title but I can't seem to set the string in the text box. I have the textbox handle but can't seem to pass the string/ However, the API brings back a value of 1 which should mean it was successful. Any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|