I need to get the hwnd of a listview control, but it doesnt have a .hwnd property... how would I get it? :/
Printable View
I need to get the hwnd of a listview control, but it doesnt have a .hwnd property... how would I get it? :/
VB Code:
ListView1.Handle
Tried that, but I get another error then. I ain't at work at the moment, so I will let you know what it says tomorow.
Hi.
Handle is returned as an IntPtr.
If you are going to use this with an API function or similiar use Listview.Handle.ToInt32, or change the declaration of the function to accept an IntPtr instead of Integer.
That sounds like the answer, cheers. :)