This article is a mirror article of machine translation, please click here to jump to the original article.

View: 3884|Reply: 2

[WinForm] WinForm loading animation effect

[Copy link]
Posted on 4/23/2023 7:37:41 PM | | | |
Requirement: WinForm forms loadCalling the remote API interface takes a few seconds to return data to the formIf the user opens an empty data interface that is not very friendly (there is no data in the future, but it is actually getting data), how to add a loading animation effect?

The renderings are as follows:



In fact, it comes with WinFormProgressBarThe control can easily implement a loading animation effect by setting the Style property to System.Windows.Forms.ProgressBarStyle.Marqueeto let the user know that the data is loading.

The code is as follows:

If the loading is complete, you only need to set the Visible property to hide the controls.

(End)





Previous:Three laws of the IT industry
Next:ASP.NET Core (17) integrates MiniProfile application performance analysis
Posted on 4/24/2023 10:41:05 AM |
Learn to learn
Posted on 3/29/2024 5:25:15 PM |
Learn it
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com