I am doing a program in which I am uploading different forms in a panel. But when I load them, the screen flashes several times and it is very annoying. I used the DoubleBuffered=true
but nothing.
I'm thinking of using panels directly but for the design it's more convenient to use forms.
Private Sub AbrirFormEnPanel(ByVal Formhijo As Object)
If Me.pnl_Fondo.Controls.Count > 0 Then
Me.pnl_Fondo.Controls.RemoveAt(0)
End If
Dim fh As Form = TryCast(Formhijo, Form)
fh.TopLevel = False
fh.FormBorderStyle = Windows.Forms.FormBorderStyle.None
fh.Dock = DockStyle.Fill
Me.pnl_Fondo.Controls.Add(fh)
Me.pnl_Fondo.Tag = fh
fh.Show()
End Sub