WaitCursor没有停用?

时间:2015-08-05 15:04:31

标签: vb.net cursor

我的应用程序有几种形式和例程,其中有几种我使用" Application.UseWaitCursor = true"。

程序运行正常,但在某些情况下,光标不会恢复为Normal,而#34; Application.UseWaitCursor = false"。我尝试了一些额外的方法" Me.UseWaitCursor = false"," Me.Cursor = Cursors.Default"等等,但应用程序似乎被WaitCursor锁定。

你知道会发生什么吗?

看到发生这种情况的简单任务:

 Application.UseWaitCursor = true

 Dim Resposta as Boolean = Routine_to_Verify_Account()
 if Resposta = True
    X = "OK"
 else
    X = "There are some problems related to your account..."
 End If

 Application.UseWaitCursor = false
 Application.DoEvents()

感谢您的帮助。

0 个答案:

没有答案