|
-
Oct 9th, 2003, 10:06 AM
#1
Thread Starter
Frenzied Member
[solved] Add Item to ListBox on Another Application...
Hi,
How do I use the SendMessage API to add a string to a listbox on another application?
I have searched the forums and got nothing.
(i hope at least) this is possible?
Tnx.
Last edited by wpearsall; Oct 9th, 2003 at 10:41 AM.
Wayne
-
Oct 9th, 2003, 10:11 AM
#2
VB Code:
Private Const LB_ADDSTRING = &H180
Private Sub Command1_Click()
Call SendMessage(SomehWnd, LB_ADDSTRING, (-1), "Test")
End Sub
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Oct 9th, 2003, 10:31 AM
#3
Thread Starter
Frenzied Member
Is there any special way i need to format the text before i send it?
because it isnt adding to the list as i send it
This:
---------------------------
This is my text to add to the list
---------------------------
Becomes:
---------------------------
ÔÊ
---------------------------
Thanks
-
Oct 9th, 2003, 10:32 AM
#4
Try putting ByVal in front of the string, maybe.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Oct 9th, 2003, 10:37 AM
#5
Thread Starter
Frenzied Member
thanks, thats got it
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
|