How to prevent controls from flickering when loading in VB.net?
05:18 09 Mar 2013

I am currently facing a problem with my current windows application. This is the video of my problem.

Flickering Problem

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 DoubleBuffer to true but still not working. Any help?

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:

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
vb.net winforms