# Listbox row selection not working

**URL:** <https://forum.xojo.com/t/listbox-row-selection-not-working/77807>\
**Category:** General\
**Created:** [October 24, 2023, 5:20pm UTC](https://forum.xojo.com/t/listbox-row-selection-not-working/77807 "2023-10-24T17:20:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terrence\_Findlay1](https://forum.xojo.com/user_avatar/forum.xojo.com/terrence_findlay1/32/4611_2.png) [@Terrence\_Findlay1](https://forum.xojo.com/u/Terrence_Findlay1)\
**Post date:** [October 24, 2023, 5:20pm UTC](https://forum.xojo.com/t/listbox-row-selection-not-working/77807/1 "2023-10-24T17:20:43Z")

</div>

![CleanShot 2023-10-24 at 10.16.28@2x](https://forum.xojo.com/uploads/default/original/2X/b/b7cfff47d0f920b69b1db2fc770928bb6e624b47.jpeg)

Does anyone know why the Listbox1.Selected(i) is not working? I copied this code from the Help app.

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [October 24, 2023, 5:24pm UTC](https://forum.xojo.com/t/listbox-row-selection-not-working/77807/2 "2023-10-24T17:24:35Z")

</div>

It is RowSelectedAt, otherwise how do you know if you are asking about a Row, Column or Cell. Typically items that take an index would end in At.

---

<div class="post-metadata">

**Author:** ![AlbertoD](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@AlbertoD](https://forum.xojo.com/u/AlbertoD)\
**Post date:** [October 24, 2023, 5:39pm UTC](https://forum.xojo.com/t/listbox-row-selection-not-working/77807/3 "2023-10-24T17:39:11Z")

</div>

Listbox.selected was deprecated: [ListBox (deprecated) — Xojo documentation](https://documentation.xojo.com/api/deprecated/listbox.html#listbox-selected)

The new DesktopListbox doesn’t offer ‘Selected’ (as the error is telling in your screenshot).

How to know if your control is regular Listbox or DesktopListbox, you can check the Super:  
 ![image](https://forum.xojo.com/uploads/default/original/2X/5/5bf66d619ad4658a17b8320b72288d679fd84e02.png)

You can use the suggestions (using TAB) to see if something that you are using is available or not. For DesktopListbx you can type ListBox1.Sele to see what options are avilable:  
 ![image](https://forum.xojo.com/uploads/default/original/2X/8/8eddf307a690fc6ebc2e43ddad5b6ed15b189315.png)  
and see that is not what you want.
