title: .net 2010 calling DoEvents (yes I want to) from inside a custom control library
body: <p>I have a custom control's library. Now there's a control which looks like a panel, and when it opens up I want to animate its vertical growing like this:</p>
  
  <pre><code>For h As Single = 0 To finalHeight Step 0.5
      Me.Height = CInt(h)
      '  HERE I WANT TO CALL DoEvents'
  Next
  Me.Height = finalHeight 
  </code></pre>
  
  <p>If I don't call DoEvents in the loop then the animation is not shown, I only get the final height without a visual feedback along the way.</p>
  
  <p>I can call DoEvents from inside my main WinForm project, but can't inside a library.</p>
  
  <p>How can I do that, without drowning into the deep threads waters?</p>