Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 105301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:25:03+00:00 2026-05-11T01:25:03+00:00

I still have a problem with the splash screen. I don’t want to use

  • 0

I still have a problem with the splash screen. I don’t want to use the property SC.TopMost=true.

Now my application scenario is as follows:

in progeram.cs:

[STAThread] static void Main() {     new SplashScreen(_tempAL);// where _tempAL is an arrayList     Application.Run(new Form1(_tempAL)); } 

in SplashScreen class:

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);                     int k = 0;                     _serverNarratorNode = new ArrayList();                     while (true)                     {                         int ind = _line.IndexOf('*');                         if (ind > 0 && ind < _line.Length)                         {                             string str = _line.Substring(0, (ind));                             if (k == 0)                             {                                 _allServerNarrators[_narId] = str;                                 _serverNarratorNode.Add(str);                             }                             else                             {                                 _serverNarratorNode.Add(str);                             }                             _line = _line.Substring(ind + 1);                             k++;                         }                         else                         {                             _line = null;                             break;                         }                     }                     _serverNarrators.Add(_serverNarratorNode);                     _serverFiles = 'added';                 }                 _line = _strReader.ReadLine();                 if (_line == null)                 {                     break;                 }             }         }         else             counter++;     } } 

What I want is something in the splash screen class which waits until the thread finishes.

For more details, please tell me what I need to tell you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T01:25:04+00:00Added an answer on May 11, 2026 at 1:25 am

    Following across 2 threads is a bit confusing, but I’m going to take a stab and say this…

    I don’t fully understand your design here, but if the issue is that when you launch a second application the splash screen form turns white… It’s most likely due to the fact that splash screen is busy executing all of that code in GetFromServer(). So busy that it has no time to re-paint itself.

    To remedy this problem I would suggest that you use the BackGroundWorker component to execute the GetFromServer method. This will run that method in a separate thread and leave the form’s thread free to re-paint itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.