I'm trying to create a TImage component at run-time but cannot get the image to display. I have the following code in a button.onClick event:
ImageTest := TImage.Create(Nil);
ImageTest.Stretch := True;
ImageTest.Height := 33;
ImageTest.Left := 80;
ImageTest.Width := 33;
ImageTest.Top := 16;
The code compiles and runs ok but the image does not show. The file is in the current directory and is in bitmap format. Can someone please put me straight?
Any help greatly appreciated.