windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockmanager-96cae70f.md
Forces the dock manager to finish its initialization.
Namespace : DevExpress.XtraBars.Docking
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public virtual void ForceInitialize()
Public Overridable Sub ForceInitialize
A typical scenario for using this method is applying certain modifications to the control (e.g. changing the layout or any other operation that requires the DockManager to be initialized) within the form constructor, when there is a chance that the control is not fully initialized yet. In this case, call the ForceInitialize method to make sure the control’s initialization is complete. Afterwards, you can safely perform layout changes, access and modify dock panel collections etc.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ForceInitialize() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-richedit-document-api/CS/RichEditAPISample/DisplayResultControl.cs#L34
get {
dockManager1.ForceInitialize();
return dockPanel1; }
winforms-richedit-document-api/VB/RichEditAPISample/DisplayResultControl.vb#L36
Get
dockManager1.ForceInitialize()
Return dockPanel1
See Also