# Why are listboxes not showing rows of content?

**URL:** <https://forum.xojo.com/t/why-are-listboxes-not-showing-rows-of-content/86105>\
**Category:** General\
**Created:** [July 27, 2025, 9:20pm UTC](https://forum.xojo.com/t/why-are-listboxes-not-showing-rows-of-content/86105 "2025-07-27T21:20:46Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![R\_Charles\_Flickinger](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/7ab992/32.png) [@R\_Charles\_Flickinger](https://forum.xojo.com/u/R_Charles_Flickinger)\
**Post date:** [July 27, 2025, 9:20pm UTC](https://forum.xojo.com/t/why-are-listboxes-not-showing-rows-of-content/86105/1 "2025-07-27T21:20:46Z")

</div>

I’ve seemingly successfully refactored my project to API.2

My files open fine, showing 565 rows of data so far this year, and switching them to others properly shows their data.

When I create a new file, I enter an initial item successfully. Save while closing, reopen the file, and both listboxes show absolutely nothing, as though they are not appearing though they always have on files I’ve used for months.

How do I get these to appear in the new files I’m creating?

Thanks for any pointers to fix this. A lot of time and work went into this to see new files failing like this. May be I’m SOL and out of business with this. If this is not fixable, I’ve wasted a lot of time refactoring to API.2.

I’m happy with the accomplishment and existing customers are not having a ton of bug issues, but new customers will if i can’t learn why these listboxes are not showing on new files.

I checked my previous build (API.1) using current 2025.2 and new file with a single entry show fine when the file is reopened. Create the same with my refactored project, listboxes are not showing. Still, when I open my current year’s file, no bugs, everything visible and working.

Please help if you know about this. Thanks in advance for your generosity. Twenty four years developing and producing this work, for it to fall like this is disgraceful. There IS a solve, yes?

---

<div class="post-metadata">

**Author:** ![Tim\_Hare](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_hare/32/176_2.png) [@Tim\_Hare](https://forum.xojo.com/u/Tim_Hare)\
**Post date:** [July 27, 2025, 10:50pm UTC](https://forum.xojo.com/t/why-are-listboxes-not-showing-rows-of-content/86105/2 "2025-07-27T22:50:32Z")

</div>

Of course there’s a solution. However, you haven’t provided enough information to even guess at what’s going on.

---

<div class="post-metadata">

**Author:** ![J\_Luc\_Pellerin](https://forum.xojo.com/user_avatar/forum.xojo.com/j_luc_pellerin/32/18744_2.png) [@J\_Luc\_Pellerin](https://forum.xojo.com/u/J_Luc_Pellerin)\
**Post date:** [July 28, 2025, 4:05pm UTC](https://forum.xojo.com/t/why-are-listboxes-not-showing-rows-of-content/86105/3 "2025-07-28T16:05:38Z")

</div>

Is it possible to see your method ?

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [July 28, 2025, 4:49pm UTC](https://forum.xojo.com/t/why-are-listboxes-not-showing-rows-of-content/86105/4 "2025-07-28T16:49:42Z")

</div>

use debug.log and break points to see what is going on.  
use listboxes with initial data in designer and look at runtime if this is displayed.  
because you changed to api2 maybe a event is skipped, there was a lot renaming from api1 to 2 by xojo.  
change to api2 can be done with provided menus in xojo ide.

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [July 28, 2025, 5:09pm UTC](https://forum.xojo.com/t/why-are-listboxes-not-showing-rows-of-content/86105/5 "2025-07-28T17:09:56Z")

</div>

The problem lies with dark mode (IMHO)…

---

<div class="post-metadata">

**Author:** ![R\_Charles\_Flickinger](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/7ab992/32.png) [@R\_Charles\_Flickinger](https://forum.xojo.com/u/R_Charles_Flickinger)\
**Post date:** [July 28, 2025, 7:26pm UTC](https://forum.xojo.com/t/why-are-listboxes-not-showing-rows-of-content/86105/6 "2025-07-28T19:26:28Z")

</div>

I tried to delete this “second” thread. I showed a method and two screenshots at the other thread on “Bugs and Feature Requests”

The problem is not with dark mode because I’m colorizing the rows be the account number on the row.. I checked and when the colorizing is turned off, it is equally visible whether DarkMode is on or off.

That other thread in Bug and Feature Requests shows and includes explanation why the data is present in these files, and exportable to prove the data was there.

---

<div class="post-metadata">

**Author:** ![Jeff\_Tullin](https://forum.xojo.com/user_avatar/forum.xojo.com/jeff_tullin/32/693_2.png) [@Jeff\_Tullin](https://forum.xojo.com/u/Jeff_Tullin)\
**Post date:** [July 28, 2025, 7:28pm UTC](https://forum.xojo.com/t/why-are-listboxes-not-showing-rows-of-content/86105/7 "2025-07-28T19:28:54Z")

</div>

> [@R\_Charles\_Flickinger](#):
>
> I checked and when the colorizing is turned off, it is equally visible whether DarkMode is on or off.

So there is a problem in the colorisation code.

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [July 28, 2025, 7:34pm UTC](https://forum.xojo.com/t/why-are-listboxes-not-showing-rows-of-content/86105/8 "2025-07-28T19:34:10Z")

</div>

…or the number of colums…

---

<div class="post-metadata">

**Author:** ![R\_Charles\_Flickinger](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/7ab992/32.png) [@R\_Charles\_Flickinger](https://forum.xojo.com/u/R_Charles_Flickinger)\
**Post date:** [July 28, 2025, 8:30pm UTC](https://forum.xojo.com/t/why-are-listboxes-not-showing-rows-of-content/86105/9 "2025-07-28T20:30:23Z")

</div>

Not really a colorization problem. It’s intended to display the same, day or night, so to speak. When I turn the colors off, it still colorizes the rows alternately between two colors, like ledger paper.

---

<div class="post-metadata">

**Author:** ![Jeff\_Tullin](https://forum.xojo.com/user_avatar/forum.xojo.com/jeff_tullin/32/693_2.png) [@Jeff\_Tullin](https://forum.xojo.com/u/Jeff_Tullin)\
**Post date:** [July 28, 2025, 8:51pm UTC](https://forum.xojo.com/t/why-are-listboxes-not-showing-rows-of-content/86105/10 "2025-07-28T20:51:37Z")

</div>

> [@R\_Charles\_Flickinger](#):
>
> When I turn the colors off, it still colorizes the rows alternately between two colors, like ledger paper.

> when the colorizing is turned off, it is equally visible whether DarkMode is on or off.

I would love to be able to help, but these answers are vague and contradictory.  
Sorry, without the project, I give up.

---

<div class="post-metadata">

**Author:** ![R\_Charles\_Flickinger](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/7ab992/32.png) [@R\_Charles\_Flickinger](https://forum.xojo.com/u/R_Charles_Flickinger)\
**Post date:** [July 29, 2025, 5:59am UTC](https://forum.xojo.com/t/why-are-listboxes-not-showing-rows-of-content/86105/11 "2025-07-29T05:59:41Z")

</div>

I added this project that duplicates the errors/bugs I’m seeing. It was working great for about a half hour and suddenly started to refuse showing text. The culprit is related to PaintCellBackground handle.

[ListboxBug Project.zip](https://forum.xojo.com/uploads/short-url/saHiXFymBt6Jo0KIJylZOqnUeaC.zip) (13.1 KB)

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [July 29, 2025, 11:00am UTC](https://forum.xojo.com/t/why-are-listboxes-not-showing-rows-of-content/86105/12 "2025-07-29T11:00:51Z")

</div>

be carefil with custom colors.  
if you paint a custom background color use also opposite foreground text color.  
use `If Color.IsDarkMode`

you can add PaintCellText and use TextShape for output

at background paint event you need other color if the row is selected.

at windows 11 your example show data if i open this sql file. (Xojo 2025r2)

---

<div class="post-metadata">

**Author:** ![Jeff\_Tullin](https://forum.xojo.com/user_avatar/forum.xojo.com/jeff_tullin/32/693_2.png) [@Jeff\_Tullin](https://forum.xojo.com/u/Jeff_Tullin)\
**Post date:** [July 30, 2025, 2:16pm UTC](https://forum.xojo.com/t/why-are-listboxes-not-showing-rows-of-content/86105/13 "2025-07-30T14:16:50Z")

</div>

There is a routine that sets the **defaultrowheight** of the listboxes , and under some circumstances, it was setting the row height to 0  
Data was there, but with a row height of zero, it couldn’t be seen.
