public SplashForm(Bitmap bmpFile, Color col, string strText, System.Drawing.Font fontText, PointF TextPos, System.Drawing.Color TextColor)
{
// ====================================================================================
// Setup the form
// ====================================================================================
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.ShowInTaskbar = false;
this.TopMost = true;
// make form transparent
this.TransparencyKey = this.BackColor;
m_strText = strText;
m_Font = fontText;
m_TextPos = TextPos;
m_TextColor = TextColor;
// tie up the events
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.SplashForm_KeyUp);
this.Paint += new System.Windows.Forms.PaintEventHandler(this.SplashForm_Paint);
this.MouseDown += new MouseEventHandler(SplashForm_MouseClick);
// load and make the bitmap transparent
m_bmp = bmpFile;
if(m_bmp == null)
throw new Exception("Failed to load the bitmap file");
// if(col != null)
// m_bmp.MakeTransparent(col);
// resize the form to the size of the iamge
this.Width = m_bmp.Width+10;
this.Height = m_bmp.Height+10;
// center the form
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
// thread handling
m_delegateClose = new DelegateCloseSplash(InternalCloseSplash);
}