title: Flickering and "CreateParams"
body: <p>I want to avoid flickering in a panel of my application, after googling from <strong>4 monthgs</strong> ago, after trying subclassed panels, after asking here two or three times, after asking in other forums... nobody has the solution but today I've found the solution by a miracle in this last answer: <a href="https://stackoverflow.com/questions/14430385/is-their-a-way-to-stop-the-picturebox-from-flickering-when-being-resized/14435859#14435859">Is their a way to stop the picturebox from flickering when being resized?</a></p>
  
  <pre><code>Protected Overrides ReadOnly Property CreateParams() As CreateParams
          Get
              Dim cp As CreateParams = MyBase.CreateParams
              cp.ExStyle = cp.ExStyle Or &amp;H2000000
              Return cp
          End Get
  End Property 'CreateParams
  </code></pre>
  
  <p>Now I want to know what really does that lines of code., I need to understand what is doing that code to my application,</p>
  
  <p>is a good way to get avoid of flickering?</p>
  
  <p>MSDN says :</p>
  
  <p>"The CreateParams property should not be overridden and used to adjust the properties of your derived control" </p>
  
  <p>but why not?, that is the only way I found to really get out my panel flickering so that's why I want to know more about the code I posted above, I want to understand all the orders, also the beneffits of that sub and the negatives, all things are welcome...</p>
  
  <p>Someone can explain me more about that code?</p>
  
  <pre><code>UPDATE:
  </code></pre>
  
  <p>I've tested the "flickering solution" in all my applications and yes its a flickering solution... but has the negative point 'cause my programs turns around -200% speed more slow, I mean when using that override sub the programs turns awesomelly more slow like x6 times more slow so is not a good idea to use the override sub as is.</p>
  
  <p>Someone knows if I can avoid the flickering without ralentize my application?</p>