How to avoid flickering while loading dock state?
4 Feb 20251 minute to read
Flickering can be avoided by calling the below methods.
- LockDockPanelsUpdate
- UnLockDockPanelsUpdate
The LockDockPanelsUpdate and UnLockDockPanelsUpdate methods are used to lock and unlock the panel’s repainting respectively. For example to avoid flickering while loading a dock state, these methods can be used in the following way.
//Avoids flickering while loading dock state
this.dockingManager1.LockHostFormUpdate();
this.dockingManager1.LoadDockState();
this.dockingManager1.UnlockHostFormUpdate();
'Avoids flickering while loading dock state
Me.dockingManager1.LockHostFormUpdate()
Me.dockingManager1.LoadDockState()
Me.dockingManager1.UnlockHostFormUpdate()