koger
asked on
Background Picture on form.
How to use a bitmap as a background picture on a form in Delphi 2
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
To fully answer your question fully :
add in the public section of your form :
bmpBackground : TBitmap;
add in the formcreate event following code :
bmpBackground := TBitmap.Create;
bmpBackground.LoadFromFile
add code in the onpaint event :
Canvas.Draw( 0, 0, bmpBackground );
offcourse we've to free the memmory of our bitmap, so add following code in the formdestroy event :
bmpBackground.Free;
Zif