Well, I have an application which works with a dynamic panel at mid and when I select something from toolbar, panel changes with;
Public Sub loadContent(ByVal o As UserControl)
frmMain.panelMid.Visible = False
frmMain.panelMid.Controls.Clear()
frmMain.panelMid.Controls.Add(o)
frmMain.panelMid.Visible = True
End Sub)
loadContent(New UserControl1(someParameters))
But rendering is too slow than I expect (even on a good configured brand new PC). All transparency keys set default and transparency is off. I am doing some database actions on usercontrol's load also (but its still slow when I disable them). I guess I need something like;
Click Toolbar Button -> Visibility: off -> Disable rendering -> Apply usercontrol to panel -> Paint all objects and do database work - > Enable rendering -> Visibility: on
I am searching something like this, please help. Thanks in advance :)