CRR0028 - Empty event handler

This analyzer detects the event handlers that contain no code or throw a NotImplementedException exception.

public partial class DemoForm : Form {
    public Form1() {
        InitializeComponent();
        Load += DemoForm_Load;
    }
    private void DemoForm_Load(object sender, EventArgs e) {
        throw new NotImplementedException();
    }
}

Add some code to the event handler or delete it along with the subscription statement to fix this issue.

public partial class DemoForm : Form {
    public Form1() {
        InitializeComponent();
        Load += DemoForm_Load;
    }
    private void DemoForm_Load(object sender, EventArgs e) {
        BackColor = Color.Black;
    }
}