title: How to prevent controls from flickering when loading in VB.net?
body: <p>I am currently facing a problem with my current windows application. This is the video of my problem.</p>
  
  <p><a href="http://youtu.be/LBfJ1RWI4Q4" rel="nofollow">Flickering Problem</a></p>
  
  <p>As you can see, every time I click some buttons and when it loads the controls (tab controls and panel), they were flickering around and it seem to look annoying. How can I get rid of this? I already tried to set the <code>DoubleBuffer</code> to true but still not working. Any help?</p>
  
  <p>I also do the suspendlayout() and resumelayout() inside the load event but still not working. Or maybe because I have coded it wrongly. This is my code:</p>
  
  <pre><code>Private Sub frmAdminPanel_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
          lblUser.Text = currentUser
          Me.pnlOverview.SuspendLayout()
          Me.tabPayment.Visible = False
          Me.tabClientReporting.Visible = False
          Me.btnNewEntry.Visible = False
          Me.btnPayment.Visible = False
          setOverview()
          Me.pnlOverview.Visible = True
          Me.pnlOverview.ResumeLayout()
      End Sub
  </code></pre>