Show a splash screen at once

后端 未结 4 1331
说谎
说谎 2021-01-05 22:16

We are dealing with slow start for WinForm applications (it is a large application and has many control assemblies). Control assemblies are DevComponents. Ngen was applied t

4条回答
  •  盖世英雄少女心
    2021-01-05 22:46

    For a lightweight, reusable splash screen component written in C++ and using the native Windows APIs, see Stefan Olson's splash screen. It takes the approach Cody Gray alludes to of starting with a separate non-CLR process which then loads the main CLR app.

    I had to implement the exact same thing at my last job and I can confirm the approach works well -- the time between the user clicking the program icon in the start menu and the splash screen appearing is just a few milliseconds and so feels 'instant'.

提交回复
热议问题