I have a component that is inherited from TImage. I place the component on a form and resize it to larger than it's default size. In the resize event I create a new bitmap and assign it to the picture property, then free the bitmap. So far so good.
When the form is created and made visible at runtime the resize event of my component is invoked twice: Once when the width is set and once when the height is set.
My problem is that during the resize event the ClientWidth and ClientHeight of my component have the default component size as their values, instead of the size that I dragged out when I dropped the control on the form at development time.
How can I, when the form is first shown, know the size of my component?