Re: How to completely (incl. dotted box) unselect an item of a ListView



See http://vbnet.mvps.org/code/faq/faqqa.htm near the bottom. There are
three solutions posted depending on property settings.

--

Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/

Please reply to the newsgroups so all can participate.




"Stefan Mueller" <seekware-remove-@xxxxxxxxx> wrote in message
news:ed03i8$2h7e$1@xxxxxxxxxxxxxx
I've a ListView in ReportMode with MultiSelect = False.

If the user enters a number I select the appropriate item in the ListView.

If the used enters a number which is not in the ListView I'd like to
unselect the former selected item. Today I do this with
Sample_ListView.SelectedItem.Selected = False

This works but there is still a dotted box around the former selected item.

Is there a way also to hide the dotted box?
Stefan

PS: The ListView should remain the focus


.



Relevant Pages

  • Re: Populate a Listview
    ... "Rick Rothstein" wrote: ... > newsgroups devoted exclusively to .NET programming. ... >> having real problems trying to populate a listview box. ... >> I would also like to hide the autonumber field and just use it to find ...
    (microsoft.public.vb.controls)
  • Re: VB.NET ListView with multiselect and checkboxes
    ... The ListView has checkboxes, is multiselect and it's ... Solutions appropriate to one will be meaningless in the other and you are more likely to get the answers you need in newsgroups that are frequented by others using the dotnet platform rather than here where the focus is on VB "classic". ...
    (microsoft.public.vb.controls)
  • Re: vb6 listview
    ... Randy Birch ... Please reply to the newsgroups so all can participate. ... Im using listview in report mode with a number of columns. ...
    (microsoft.public.vb.general.discussion)
  • Re: Populate a Listview
    ... newsgroups devoted exclusively to .NET programming. ... > having real problems trying to populate a listview box. ... > I would also like to hide the autonumber field and just use it to find ...
    (microsoft.public.vb.controls)
  • Re: listview and subclassing problem
    ... Please respond only to the newsgroups so all can benefit. ... I create a listview control on form. ... the listview occurs) to callback function. ...
    (microsoft.public.vb.controls)