dennismagno / metroframework-modern-ui

My humble attempt to bring the new Modern UI alias Metro UI of Windows 8 to .NET Windows Forms applications.
http://dennismagno.github.io/metroframework-modern-ui
Other
861 stars 1.08k forks source link

StackOverflowException Exception thrown on CursorChanged #43

Open YomYomi opened 7 years ago

YomYomi commented 7 years ago

When changing the Cursor and you have few MetroTextBoxes and Labels on the forms it throws an Exception private void metroButton1_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; } An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll and the program Crush.

aller70 commented 7 years ago

Confirm this issue. Try Form.UseWaitCursor = true

amroman87 commented 6 years ago

I have the same issure.

vandermjr commented 4 years ago

Try use Cursor.Current = Cursors.WaitCursor.

private void metroButton1_Click(object sender, EventArgs e) { this.Cursor.Current = Cursors.WaitCursor; }

robdplatt commented 4 years ago

Wanted to add I had the same problem. Using Cursor.Current seems to work. However, that sets the cursor for the entire application. This isn't a great solution for multi-windowed applications.

What is the underlying issue?

itjepoy01 commented 3 years ago

Cursor.Current = Cursors.WaitCursor saves my day, thanks