/*
OnPaint example
The following code loads a background bitmap onto the Canvas of the main form in the OnPaint event handler.  In the header file for Unit 1, add a private member to TForm1 of type Graphics::TBitmap named TheGraphic.
*/ 
void __fastcall TForm1::FormPaint(TObject *Sender)// OnPaint event handler
{
  Form1->Canvas->Draw(0, 0, TheGraphic); // Draw the graphic on the Canvas
}
void __fastcall TForm1::FormCreate(TObject *Sender)// OnCreate event handler
{
  TheGraphic = new Graphics::TBitmap(); // Create the bitmap object 
  TheGraphic->LoadFromFile("C:\\APP\\BKGRND.BMPBKGRND.png"); // Load the bitmap from a file
}
 
