ComboBox reverting to index 0 at seemingly random
<p>I have an <code>array</code> of <code>ComboBoxes</code>, each with it's own <code>DataSource</code> which is set at the beginning and not messed with any further. Each <code>ComboBox</code> has some index (which is not 0) selected.</p>

<p>Now, I have a grid of <code>Panels</code> drawn on a <code>Form</code>. Each <code>Panel</code> is connected to it's own <code>ComboBox</code>. According to set rules, <code>ComboBox</code> can be drawn on the <code>Form</code>. Here are the rules:</p>

<p>On <code>mouseClick</code> connected-<code>ComboBox</code> is designated as selected-<code>ComboBox</code>. It was already drawn on <code>mouseEnter</code> event.</p>

<p>On <code>mouseEnter</code> selected-<code>ComboBox</code> is replaced with the connected-<code>ComboBox</code>.</p>

<p>On <code>mouseLeave</code> connected-<code>ComboBox</code> is replaced with selected-<code>ComboBox</code>.</p>

<p>Basically, it displays the last selected <code>ComboBox</code>, or the one you are currently hovering over.</p>

<p>When I started the program and started hovering my mouse above the <code>Panels</code>, different <code>ComboBoxes</code> were displayed. However, after some seemingly random time, their index will change to 0, displaying the item at said <code>index</code>.</p>

<p>Now, I only change the <code>selectedIndex</code> of the <code>ComboBox</code> in one place in my code, and that spot should not be executed during the test - and it is not, proven by placing a breakpoint that never triggers.</p>

<p>I can change the <code>selectedIndex</code> as the user using the <code>ComboBox</code> - but I don't do that, so that's out. I just hover over the <code>Panels</code>.</p>

<p>I managed to pause the program after it happened to examine the state of the altered <code>ComboBox</code>. <code>SelectedItem</code>, <code>SelectedIndex</code> and <code>Text</code> properties were all changed. The interesting part? <code>SelectedIndexChanged</code> event never fired.</p>

<p>I don't think this has to do anything with the code, but is some kind of strange behaviour of <code>ComboBox</code>.</p>

<p>What are the reasons for which the ComboBox might default to first index as selected one, not firing the <code>SelectedIndexChanged</code> in the process?</p>

<p>If nothing else, is there a way I could monitor the <code>SelectedIndex</code> property of the <code>ComboBox</code> in a way the code pauses if it changes (as though there was a breakpoint in the setter)?</p>