啟動(dòng)屏幕等待線程完成我還是有問(wèn)題的飛濺屏幕。我不想用這房子SC.TopMost=true.現(xiàn)在,我的應(yīng)用程序場(chǎng)景如下:在方案中:[STAThread]static void Main(){
new SplashScreen(_tempAL);// where _tempAL is an arrayList
Application.Run(new Form1(_tempAL));}在SplashScreen班:public SplashScreen(ArrayList _Data){
DisplaySplash()} private void DisplaySplash(){
this.Show();
this.TopMost = true;
this.CenterToScreen();
this.SetTopLevel(true);
_allServerNarrators = new string[10];
for (int i = 0; i < _allServerNarrators.Length; i++)
_allServerNarrators[i] = null;
GetFromServer();
this.Hide();
_serverData = new ArrayList();
_thisData.Add(_allServerNarrators);
_thisData.Add(_serverNarrators);}private void GetFromServer(){
_serverNarrators = new ArrayList();
string _file = "Suras.serverNar";
if (!Directory.Exists("c:\\ASGAQuraan"))
Directory.CreateDirectory("c:\\ASGAQuraan");
while (counter < 4 && _serverFiles == null)
{
if (Download("c:\\ASGAQuraan", _ftpServerIP, _file))
{
StreamReader _strReader = new StreamReader
("c:\\ASGAQuraan\\"+_file,System.Text.Encoding.Default);
string _line = _strReader.ReadLine();
string _word;
while (true)
{
while (_line != null)
{
_word = _line.Substring(0, _line.IndexOf("*"));
int _narId = Convert.ToInt32(_word);
_line = _line.Substring(2);我想要的是SplashScreen類中的一些內(nèi)容,它等待線程完成。想知道更多細(xì)節(jié),請(qǐng)告訴我需要告訴你的。
啟動(dòng)屏幕等待線程完成
慕無(wú)忌1623718
2019-06-28 11:03:13