If the listbar is on the form, then you can add code in form Resize method. Something simple:
{obj_ref}.Height = this.Height - 16
16 is the approximate number of pixels of toolbar mover, if the listbar class is in a toolbar.
I've posted an updated version, check it. The code that resize objects is moved in ASSIGN methods to avoid endless recursive calls (ASSIGN call _resize, but , because of ASSIGN bug, when .width or .height is in right side of an expression to set other objects width or height, then ASSIGN method fires again, and so...). Seems that the ASSIGN method is not calling itself.
>Hi,
>thank you for reply. I have try the code, but it doesn't work.
>Although, I am using TOP LEVEL form as MDI form instead of _SCREEN. Therefore, I change the code you given to
>
>
>this.screenhook.olistbarref.Height = <B>frmMain</B>.height-6-sysmetric(20)+(sysmetric(4)+1)*2
>
>
>
>Is it the way?
>
>Thank you