# ListBox resizable columns

**URL:** <https://forum.xojo.com/t/listbox-resizable-columns/83503>\
**Category:** Windows\
**Created:** [December 6, 2024, 2:22pm UTC](https://forum.xojo.com/t/listbox-resizable-columns/83503 "2024-12-06T14:22:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Volbragt\_Etienne](https://forum.xojo.com/user_avatar/forum.xojo.com/volbragt_etienne/32/6530_2.png) [@Volbragt\_Etienne](https://forum.xojo.com/u/Volbragt_Etienne)\
**Post date:** [December 6, 2024, 2:22pm UTC](https://forum.xojo.com/t/listbox-resizable-columns/83503/1 "2024-12-06T14:22:14Z")

</div>

I have a listbox with 12 columns.  
The 6 left columns all have a width value \> 0  
The 6 right columns all have a width of 0, so they are not shown when opening the listbox.  
The listbox behavior ‘Allow Resizable Columns’ is set to Yes.  
The problem is that the non visible columns can also be made visible and resized by the user.  
Is there a way to make these columns non resizable ?

Thanks  
Etienne

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [December 6, 2024, 2:26pm UTC](https://forum.xojo.com/t/listbox-resizable-columns/83503/2 "2024-12-06T14:26:21Z")

</div>

```auto
Listbox.ColumnAt(0).UserResizable = false
DesktopListbox.ColumnAttributesAt(0).UserResizable = false

```

[DesktopListboxColumn Documentation](https://documentation.xojo.com/api/user_interface/desktop/desktoplistboxcolumn.html)

---

<div class="post-metadata">

**Author:** ![Volbragt\_Etienne](https://forum.xojo.com/user_avatar/forum.xojo.com/volbragt_etienne/32/6530_2.png) [@Volbragt\_Etienne](https://forum.xojo.com/u/Volbragt_Etienne)\
**Post date:** [December 6, 2024, 2:59pm UTC](https://forum.xojo.com/t/listbox-resizable-columns/83503/3 "2024-12-06T14:59:12Z")

</div>

Hi Tim,  
Thanks for this solution. It works perfect, also in XOJO 21r11.  
The only small thing that needs attention is that the last column that has UserResizable set to true must be the last visible column - 1, all the other columns are set to False.

It are the number of intersections between the columns that are in count.

Regards  
Etienne

---

<div class="post-metadata">

**Author:** ![Volbragt\_Etienne](https://forum.xojo.com/user_avatar/forum.xojo.com/volbragt_etienne/32/6530_2.png) [@Volbragt\_Etienne](https://forum.xojo.com/u/Volbragt_Etienne)\
**Post date:** [December 6, 2024, 3:02pm UTC](https://forum.xojo.com/t/listbox-resizable-columns/83503/4 "2024-12-06T15:02:50Z")

</div>

I think I did a bad explanation in my reply.  
The last visible column is resizable because the column just before is resizable.

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [December 6, 2024, 3:03pm UTC](https://forum.xojo.com/t/listbox-resizable-columns/83503/5 "2024-12-06T15:03:34Z")

</div>

Glad to have helped!

If you click the word `☑️ Solution` below my post, it will flag the thread as solved on the topic list 🙂

---

<div class="post-metadata">

**Author:** ![Richard\_Duke](https://forum.xojo.com/user_avatar/forum.xojo.com/richard_duke/32/246_2.png) [@Richard\_Duke](https://forum.xojo.com/u/Richard_Duke)\
**Post date:** [December 6, 2024, 3:06pm UTC](https://forum.xojo.com/t/listbox-resizable-columns/83503/6 "2024-12-06T15:06:53Z")

</div>

> [@Tim Parnell](#):
>
> Listbox.ColumnAt(0).UserResizable = false

I have no idea you can set individual column non resizeable!!! and I have been using for nearly 20 years
