メイン フォームが読み込まれる前に、ユーザーに更新を確認するように求めます。[OK] をクリックすると、メイン フォームが表示され、いくつかのラベルとアニメーション gif の画像ボックスを含むパネルが作成されます。
アニメーション GIF が動いていません。これは通常、メイン スレッドがビジー状態であるためです。ただし、作業を行っているスレッドにスレッドを実行したため、アニメーションを再生できませんでした。
これが私が持っているものです。
Thread CheckVersion = new Thread(new ThreadStart(VersionCheck));
this.Show(); //bring up the main form
this.BringToFront();
pCheckingVersions.Visible = true; //this contains the animated gif
Application.DoEvents(); //refresh ui so my box
CheckVersion.Start(); //start thread
CheckVersion.Join(); //wait for thread to exit before moving on
pDownloading.Visible = false;