How to display a “loading” overlay on windows forms while the form is loading its controls (or updating them)?

后端 未结 6 930
生来不讨喜
生来不讨喜 2020-12-08 08:54

I\'m looking for an effective way to notify the user that a given form is currently loading (or updating) it\'s UI and it will take few seconds.

This may occurs at i

6条回答
  •  暖寄归人
    2020-12-08 09:01

    My recommended solution is to set the forms opacity to near invisible say 0.01 before initializing the components. Then create a form with the same size and position and place either a progress bar, or marquee on this form.. After the initialization of the main form, set it's opacity to full and dispose of the marquee form.

提交回复
热议问题