Winforms label bug?
<h2>Winforms label acts strange after its font is changed more than once from the <code>Resize</code> event.</h2>

<p><strong>Steps to reproduce:</strong></p>

<ul>
<li>Add a label -with <code>AutoSize</code> property set to false- to any container (form, panel,.. etc).</li>
<li>Change the <code>BorderStyle</code> property of it to <code>FixedSingle</code> (just to be able to visually track its size).</li>
<li>Change the <code>Dock</code> property to <code>Fill</code>.</li>
<li><p>In the <code>Resize</code> event write some code to change the font of the label twice:</p>

<pre><code>Private Sub Label1_Resize(sender As Object, e As EventArgs) Handles Label1.Resize
    Label1.Font = New Font(Label1.Font.FontFamily, 14)
    Label1.Font = New Font(Label1.Font.FontFamily, 16)  ' Must be two different fonts (e.g. different font sizes).
End Sub
</code></pre></li>
<li>Now run the application and start changing the size of the label container. Will notice that the label size doesn't change with its container while the <code>Dock</code> property is still set to <code>Fill</code>!</li>
</ul>

<p><strong>P.S.</strong> This only happens when using the <code>Dock</code> property (i.e. if <code>Anchor</code> property is used instead, the problem disappears).</p>

<p>Is this a bug or am I missing something?
Does anyone has an explanation for this?</p>