vb.net VB.NET中的沙漏光标
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/50905079/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Hourglass cursor in VB.NET
提问by Tadumc421
Im currently making windows forms program (application), and when the user logs into it, he must wait a few seconds before entering it.
我目前正在制作windows窗体程序(应用程序),当用户登录时,他必须等待几秒钟才能进入。
My question is: How to get the hourglass cursor, so the user will be informed that the program (app) is busy performing an operation?
我的问题是:如何获取沙漏光标,从而通知用户程序(应用程序)正忙于执行操作?
回答by MatSnow
You can use either
你可以使用
Me.Cursor = Cursors.AppStarting
or
或者
Me.Cursor = Cursors.WaitCursor
To set it back to the normal cursor:
要将其设置回普通光标:
Me.Cursor = Cursors.Default

