// Hides the loading splash screen public void hideLoad() { if (this.InvokeRequired) { Delegate sfd = new safeCallDel(hideLoad); this.Invoke(sfd); } else { this.Controls.Remove(pbLoad); } }
// Shows the loading splash screen public void showLoad() { if (this.InvokeRequired) { Delegate sfd = new safeCallDel(showLoad); this.Invoke(sfd); } else { this.Controls.Add(pbLoad); pbLoad.BringToFront(); pbLoad.Location = new Point(0, 0); } }