Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Ok, pretty silly question here. How can I ensure that an item remains selected in the listview control? I have it setup as "list", with HideSelection set to false. However when I click on the empty white space in the control the selected item gets set to nothing. Any ideas would be appreciated.
-Ben LaBore
  • Leaders
Posted

   Private Sub ListView1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListView1.MouseUp
       ListView1.FocusedItem.Selected = True
   End Sub

hope that helps :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...