Skip to content

Commit 270f3bc

Browse files
Fix raising wrong event on changing FormCaptionTextColor.
1 parent e082e4d commit 270f3bc

File tree

1 file changed

+1
-1
lines changed
  • src/System.Windows.Forms/src/System/Windows/Forms

1 file changed

+1
-1
lines changed

src/System.Windows.Forms/src/System/Windows/Forms/Form.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2496,7 +2496,7 @@ public Color FormCaptionTextColor
24962496
[Experimental(DiagnosticIDs.ExperimentalDarkMode, UrlFormat = DiagnosticIDs.UrlFormat)]
24972497
protected virtual void OnFormCaptionTextColorChanged(EventArgs e)
24982498
{
2499-
if (Events[s_formCaptionBackColorChanged] is EventHandler eventHandler)
2499+
if (Events[s_formCaptionTextColorChanged] is EventHandler eventHandler)
25002500
{
25012501
eventHandler(this, e);
25022502
}

0 commit comments

Comments
 (0)