Michel,
>I'm wondering if anyone has done that before. I would like to detect the width and height of a GIF file from Visual FoxPro.
As Michael already pointed out, an image control automatically resizes itself to an assigned picture. Just wanted to give the additional information that this only works if the image control is instantiated with CREATEOBJECT().
HTH,
Armin