Vb.net System.StackOverflow with Me.Cursor

Vb.net System.StackOverflow with Me.Cursor,vb.net,Vb.net,我有一个程序在几个地方使用Me.Cursor=,没有任何错误 但在某种形式下,既没有特殊指令,也没有巨大的尺寸,此指令在我的Visual Studio 2013中引发了System.StackOverflow 没有特殊原因,因为错误发生在按钮的单击事件中,并且该指令是单击事件的第一行 你知道这里会发生什么吗 Private Sub TestInternoServer_Click(sender As System.Object, e As System.EventArgs) Handles Tes

我有一个程序在几个地方使用
Me.Cursor=
,没有任何错误

但在某种形式下,既没有特殊指令,也没有巨大的尺寸,此指令在我的Visual Studio 2013中引发了System.StackOverflow

没有特殊原因,因为错误发生在按钮的单击事件中,并且该指令是单击事件的第一行

你知道这里会发生什么吗

Private Sub TestInternoServer_Click(sender As System.Object, e As System.EventArgs) Handles TestInternoServer.Click

      Me.Cursor = Cursors.WaitCursor
      Me.Refresh()

上面的代码应该很好。。。我更关心设置不应该编译的
Me.Cursor=”“
。。。请向我们显示异常…您能用堆栈跟踪显示完整异常吗?我有数百行相同的代码:System.dll!System.ComponentModel.Component.Events.get()System.Windows.Forms.dll!System.Windows.Forms.Control.OnCursorChanged(System.EventArgs e)MetroFramework.dll!MetroFramework.Controls.MetroTextBox.BaseTextBoxCursorChanged(对象发送者={Text=对方法System.Windows.Forms.Control.get_Text()的求值,调用本机方法System.Windows.Forms.SafeNativeMethods.GetWindowTextLength()。不支持在此上下文中对本机方法求值。},System.EventArgs e={System.EventArgs})异常只是:“System.StackOverflowException未处理消息:System.dll中发生System.StackOverflowException类型的未处理异常”有趣的注意,如果我使用“Application.UseWaitCursor=True”而不是“Me.Cursor=WaitCursor”,则不会出现错误。但是,即使我删除了任何游标更改代码,但在按钮例程的末尾保留了“Me.cursor=Default”,错误也会以同样的方式出现。它似乎与“Me.Cursor”和我的表单中的某些内容有关——但我真的不知道它到底是什么,因为表单与我使用相同“Me.Cursor”指令的其他表单没有什么不同……上面的代码应该很好。。。我更关心设置不应该编译的
Me.Cursor=”“
。。。请向我们显示异常…您能用堆栈跟踪显示完整异常吗?我有数百行相同的代码:System.dll!System.ComponentModel.Component.Events.get()System.Windows.Forms.dll!System.Windows.Forms.Control.OnCursorChanged(System.EventArgs e)MetroFramework.dll!MetroFramework.Controls.MetroTextBox.BaseTextBoxCursorChanged(对象发送者={Text=对方法System.Windows.Forms.Control.get_Text()的求值,调用本机方法System.Windows.Forms.SafeNativeMethods.GetWindowTextLength()。不支持在此上下文中对本机方法求值。},System.EventArgs e={System.EventArgs})异常只是:“System.StackOverflowException未处理消息:System.dll中发生System.StackOverflowException类型的未处理异常”有趣的注意,如果我使用“Application.UseWaitCursor=True”而不是“Me.Cursor=WaitCursor”,则不会出现错误。但是,即使我删除了任何游标更改代码,但在按钮例程的末尾保留了“Me.cursor=Default”,错误也会以同样的方式出现。它似乎与“Me.Cursor”和我的表单中的某些内容有关——但我真的不知道它到底是什么,因为表单与我使用相同“Me.Cursor”指令的其他表单没有什么不同。。。