public ProgressBarForm( Form owner )
{
Text = "Please wait...";
Height = 90;
Width = 350;
MinimizeBox = false;
MaximizeBox = false;
StartPosition = FormStartPosition.CenterScreen;
FormBorderStyle = FormBorderStyle.FixedDialog;
label = new Label();
label.Dock = DockStyle.Top;
label.Height = 26;
label.Padding = new Padding( 5 );
Controls.Add( label );
progressBar = new ProgressBar();
progressBar.Top = label.Bottom + 5;
progressBar.Left = 5;
progressBar.Width = ClientSize.Width - 10;
Controls.Add( progressBar );
Show( owner );
CenterToParent();
Application.UseWaitCursor = true;
Application.AddMessageFilter( this );
}