Skip to content

Bug on Listbox! #652

Closed
Closed

Description

@itg-assistant

Mark Villela asked 2017-02-25 17:36:00 UTC

Hi, If I select an item.... all good.

For each n in ...selecteditems.

Debug.Writeline(n.selected)...

next

If I deselect the item.. this still "selected=true"

always this item will be "selected=true"

Bug!.

Thanks

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-02-25 18:26:18 UTC

    Hi Mark,

    ListBox items don't have a Selected property, they are just objects. I tried to iterate the listbox.SelectedItems collection and it is always correct. Can you send a test case?

    Best,

    Luca

  2. added
    BugSomething is broken or behaving unexpectedly.
    on Jun 12, 2026
  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-02-25 18:30:48 UTC

    Just tried the same with a ListView in case that what you are using and it also still works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions