windowsforms-devexpress-dot-xtrabars-dot-barmanager-c1ea887a.md
Forces the Bar Manager to create bar item links within the BarManager’s bars and menus.
Namespace : DevExpress.XtraBars
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public void ForceInitialize()
Public Sub ForceInitialize
Calling the ForceInitialize method is identical to calling BarManager.ForceLinkCreate. The ForceInitialize method is introduced to conform to naming conventions used in other .NET DevExpress products.
The ForceInitialize() method fires the Load event.
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-bars-create-baredititem/CS/Form1.cs#L135
barManager1.ForceInitialize();
winforms-bars-create-baredititem/VB/Form1.vb#L131
Dim progress As DevExpress.XtraEditors.Repository.RepositoryItemProgressBar
barManager1.ForceInitialize()
' create combo
See Also