private void timer1_Tick(object sender, EventArgs e)
{
var v = progressBar1.Value + 1;
if (v > 100) v = 100;
progressBar1.Value = v;
Application.DoEvents();
//Wait a short time and pop on top just in case it is hidden
if (!_hasShown && DateTime.Now.Subtract(_loaded).TotalMilliseconds > 1000)
{
_hasShown = true;
this.Activate();
}
}