Back to Devexpress

BarManager.ForceInitialize() Method

windowsforms-devexpress-dot-xtrabars-dot-barmanager-c1ea887a.md

latest2.4 KB
Original Source

BarManager.ForceInitialize() Method

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

Declaration

csharp
public void ForceInitialize()
vb
Public Sub ForceInitialize

Remarks

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

csharp
barManager1.ForceInitialize();

winforms-bars-create-baredititem/VB/Form1.vb#L131

vb
Dim progress As DevExpress.XtraEditors.Repository.RepositoryItemProgressBar
barManager1.ForceInitialize()
' create combo

See Also

Load

BarManager Class

BarManager Members

DevExpress.XtraBars Namespace