No events trigger and buttons are not pressable : <p>When creating a winforms application I added a pannel as a header so I could make the application borderless, I was going to add some buttons when I realised no events were getting registered by the program. Have I flicked a wrong switch somewhere?</p>

<p>I have already tried clicking the main form and changing the AutoValidation as well as checking that the form, as well as the panel, were both enabled.</p>

<pre class="lang-cs prettyprint-override"><code>public App()
        {
            InitializeComponent();
        }

        private void TopBar_MouseHover(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void ExitButton_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
</code></pre>

<p>Expect result is that it should just close the application when I hover over the topbar or when I click the ExitButton.</p>
