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.
Printable View
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.
VB Code:
Private Const LB_ADDSTRING = &H180 Private Sub Command1_Click() Call SendMessage(SomehWnd, LB_ADDSTRING, (-1), "Test") End Sub
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 :)
Try putting ByVal in front of the string, maybe.
thanks, thats got it :)