blabore Posted June 25, 2003 Posted June 25, 2003 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. Quote -Ben LaBore
Leaders dynamic_sysop Posted June 25, 2003 Leaders Posted June 25, 2003 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 :) Quote
blabore Posted June 25, 2003 Author Posted June 25, 2003 dynamic_sysop, Works perfectly. Thanks for the help. Quote -Ben LaBore
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.