Not having much luck lately with answers, maybe this one will work.
Hey, trying to read items out of a listbox in another application and use it in my VB.NET app. I can use FindWindowEx to get a handle to it just fine. Then I tried
Dim i As Integer = SendMessage(hndList, LB_GETCOUNT, IntPtr.Zero, IntPtr.Zero)
to get the number of items in it and that doesn't work. I wrote another app and dropped a listbox on it and ran it, and the above line of code DID work on that one. Then I used Spy++ and discovered the control they use in my intended target is not a Listbox, but a SysLstView32, I guess a standard ListView. I don't know I can use SendMessage to get data out of that, like I would a listbox, and if so what are the equivalents to LB_GETCOUNT, etc? And if not, is there any way to access that data??
Thanks very much.