Splash Screen waiting until thread finishes

前端 未结 5 702
醉梦人生
醉梦人生 2020-11-22 07:46

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:

5条回答
  •  死守一世寂寞
    2020-11-22 08:19

    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.

提交回复
热议问题