It didn't know you could do that either. Wow. I always coded it using SendMessage (but then, I've been accused of being API Happy...)
VB Code:
  1. Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
  2.  
  3. Private Const LVM_FIRST = &H1000
  4. Private Const LVM_SETEXTENDEDLISTVIEWSTYLE = LVM_FIRST + 54
  5. Private Const LVM_GETEXTENDEDLISTVIEWSTYLE = LVM_FIRST + 55
  6. Private Const LVS_EX_FULLROWSELECT = &H20
  7.  
  8. Private Sub SetFullRowSelection(ByVal hWndListView, ByVal bFullRow As Boolean)
  9.    SendMessage hWndListView, VM_SETEXTENDEDLISTVIEWSTYLE, _
  10.        LVS_EX_FULLROWSELECT, ByVal CLng(bFullRow))
  11. End Sub
  12.  
  13. 'This is an example of how you can use this routine:
  14. ' enable full row selecting
  15. SetFullRowSelection ListView1.hwnd, True
  16. ' disable full row selecting
  17. SetFullRowSelection ListView1.hwnd, False