You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In DemoConsole test app of WinForms repo, an exception pops up when focusing on "Type Here" in contextMenuStrip under DarkMode
Exception log: System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=System.Windows.Forms
StackTrace:
at System.Windows.Forms.ToolStripSystemDarkModeRenderer.OnRenderArrow(ToolStripArrowRenderEventArgs e) in C:\Users\xxx\source\repos\winforms\src\System.Windows.Forms\System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs:line 566
.NET version
The latest main branch of Winforms repo
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Yes. It was regressed from the PR: #13360
Issue description
In DemoConsole test app of WinForms repo, an exception pops up when focusing on "Type Here" in contextMenuStrip under DarkMode
Exception log:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=System.Windows.Forms
StackTrace:
at System.Windows.Forms.ToolStripSystemDarkModeRenderer.OnRenderArrow(ToolStripArrowRenderEventArgs e) in C:\Users\xxx\source\repos\winforms\src\System.Windows.Forms\System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs:line 566
Exception.mp4
Steps to reproduce