Results 1 to 5 of 5

Thread: Listview's hWnd

  1. #1

    Thread Starter
    Member chenko's Avatar
    Join Date
    Aug 2002
    Posts
    56

    Listview's hWnd

    I need to get the hwnd of a listview control, but it doesnt have a .hwnd property... how would I get it? :/

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    VB Code:
    1. ListView1.Handle

  3. #3

    Thread Starter
    Member chenko's Avatar
    Join Date
    Aug 2002
    Posts
    56
    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.

  4. #4
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    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.
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

  5. #5

    Thread Starter
    Member chenko's Avatar
    Join Date
    Aug 2002
    Posts
    56
    That sounds like the answer, cheers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width