我如何...在我的表单忙于加载时让鼠标播放“忙碌”动画 [英] How do I...make the mouse play "busy "anims while my form is busy loading

查看:74
本文介绍了我如何...在我的表单忙于加载时让鼠标播放“忙碌”动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试过谷歌的答案,但我不知道如果我正确的搜索它,我的表格需要一段时间打开(POS系统 - 所以它加载了很多的SQL表等)所以当它加载我想做鼠标播放像xp这样的忙动画有沙漏,其中7 - 8有旋转的O,或者像点击按钮时播放的进度条转到下一个表格,向用户显示其忙碌和没钩。 ;)提前谢谢

i tried google for an answer but i dont know if im searching it the right way , my forms take a while to open(POS system - so it loads alot of sql tables ect ect)so while it loads i want to make the mouse play that "busy" animation like xp had the hourglass where as 7 - 8 have that spinning O , or like a progress bar that plays when clicked on the button to go to the next form , to show the user that its busy and didnt hook . ;) thanks in advance

推荐答案

这可能会对你有所帮助:

This might help you:
// Set cursor as hourglass
Cursor.Current = Cursors.WaitCursor;

// Your time-taking code here...

// Set cursor as default arrow
Cursor.Current = Cursors.Default;



C#Windows窗体很忙 [ ^ ]





-KR


C# Windows Form is Busy[^]


-KR


这篇关于我如何...在我的表单忙于加载时让鼠标播放“忙碌”动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆