winforms
winforms copied to clipboard
Intermittent exception when creating a ListViewGroupAccessibleObject
This fix is based on this call stack: System.InvalidOperationException: ListView
at System.Windows.Forms.ListViewGroup.ListViewGroupAccessibleObject..ctor(ListViewGroup owningGroup, Boolean owningGroupIsDefault) at System.Windows.Forms.ListViewGroup.get_AccessibilityObject() at System.Windows.Forms.ListView.OnGotFocus(EventArgs e)
This is a follow up on https://github.com/dotnet/winforms/pull/10910#issuecomment-1958261561 Related to https://github.com/dotnet/winforms/issues/4019
Draft because I'll do more manual testing.