protected void OnSetSize(Size newSize)
{
// Calculate the size of the string, and
// center it in the window
int centerX = newSize.Width / 2;
int centerY = newSize.Height / 2;
Size stringSize = fFont.MeasureString(fStringMessage);
fOrigin.X = centerX - stringSize.Width/ 2;
fOrigin.Y = centerY - stringSize.Height/2;
}