Listbox height after window resized

I need the height of a listbox after window was resized.
listbox.resized event does not help, it shows the same height as before resizing the window.
Before closing the window I would like to know the listbox height.
any ideas ?

Have-you tried to get it from the Resized Event ?

Window.Resized

yes, does not change the height either.

Before closing the window I would like to know the listbox height.

What is wrong with

theHeight = myListbox.height

in the cancel close event of the window?

Sorry for the stupid question, but is your DesktopListbox height change on screen ?

now I tracked it down …
it works with one window.
in my case, I have a window open, for example a list of customers and now I select a customer to display let’s say an address list from inside the customer window. in this case the window height does not change after resizing the address window.

the problem is because both windows have the same name.

win-1 calles
var win-11 as new win-1
win11.runDialog

I tried to duplicate win-1 as win-1-duplicate
and now I can do
var win-1-dup as new win-1-dupliate
win-1-dup.runDialog

that works !!

thanks to all, I have to find a solution …

I solved my problem, of course it was my mistake, but most often it helps to explain it to somebody else to find a solution!

2 Likes