Hi,
I may be wrong but I believe ClientWidth is either undefined or doesn't hold the right value because there's no "outside context" when the onCreate event is triggered.
When the onShow event is fired, your form is placed inside its client (the screen I guess), and then the ClientWidth becomes available to your form.
Lush