I'm using Infragistics version 12.1 in Visual Studio 2010. There are 2 fill panels on the form (added when the toolbar manager was added to the form). The toolbar is docked within 1 and the rest of the form controls are on the other one. Everything was working fine for a while (the toolbar was displayed at the top of the form) but now the toolbar is not visible at runtime. This is the second time this has happened. I ended up adding a new form and copying all of the controls and code over to it. The toolbar worked for a while.
Thanks
'ToolBarMain
Me.ToolBarMain.DesignerFlags = 1
Me.ToolBarMain.DockWithinContainer = Me.Planning_Fill_Panel
Me.ToolBarMain.ShowFullMenusDelay = 500
UltraToolbar1.DockedColumn = 0
UltraToolbar1.DockedRow = 0
TextBoxTool1.InstanceProps.Width = 105
UltraToolbar1.NonInheritedTools.AddRange(New Infragistics.Win.UltraWinToolbars.ToolBase() {LabelTool1, TextBoxTool1, ButtonTool1,ButtonTool3, ButtonTool2, ButtonTool4})
UltraToolbar1.Text ="utMain"
Me.ToolBarMain.Toolbars.AddRange(New Infragistics.Win.UltraWinToolbars.UltraToolbar() {UltraToolbar1})
LabelTool2.SharedPropsInternal.Caption ="Part Number"
TextBoxTool2.SharedPropsInternal.Caption ="Part Number"
Appearance115.Image =Global.My.Resources.Resources.Search16x16
ButtonTool5.SharedPropsInternal.AppearancesSmall.Appearance = Appearance115
ButtonTool5.SharedPropsInternal.Caption ="Search"
Appearance116.Image =Global.My.Resources.Resources.Add
ButtonTool6.SharedPropsInternal.AppearancesSmall.Appearance = Appearance116
ButtonTool6.SharedPropsInternal.Caption ="Save"
Appearance117.Image = Global.My.Resources.Resources.Save_16x16
ButtonTool7.SharedPropsInternal.AppearancesSmall.Appearance = Appearance117
ButtonTool7.SharedPropsInternal.Caption = "Add New"
Appearance118.Image = Global.My.Resources.Resources._1348518782_copy_icon
ButtonTool8.SharedPropsInternal.AppearancesSmall.Appearance = Appearance118
ButtonTool8.SharedPropsInternal.Caption ="Clone"
Me.ToolBarMain.Tools.AddRange(New Infragistics.Win.UltraWinToolbars.ToolBase() {LabelTool2, TextBoxTool2, ButtonTool5, ButtonTool6, ButtonTool7, ButtonTool8})
'_Planning_Fill_Panel_Toolbars_Dock_Area_Left
'Me._Planning_Fill_Panel_Toolbars_Dock_Area_Left.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Left.BackColor = System.Drawing.SystemColors.Control
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Left.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Left
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Left.ForeColor = System.Drawing.SystemColors.ControlText
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Left.Location = New System.Drawing.Point(0, 52)
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Left.Name = "_Planning_Fill_Panel_Toolbars_Dock_Area_Left"
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Left.Size = New System.Drawing.Size(0, 629)
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Left.ToolbarsManager = Me.ToolBarMain
'_Planning_Fill_Panel_Toolbars_Dock_Area_Right
'
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Right.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Right.BackColor = System.Drawing.SystemColors.Control
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Right.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Right
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Right.ForeColor = System.Drawing.SystemColors.ControlText
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Right.Location = New System.Drawing.Point(1077, 52)
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Right.Name = "_Planning_Fill_Panel_Toolbars_Dock_Area_Right"
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Right.Size = New System.Drawing.Size(0, 629)
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Right.ToolbarsManager = Me.ToolBarMain
'_Planning_Fill_Panel_Toolbars_Dock_Area_Top
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Top.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Top.BackColor = System.Drawing.SystemColors,Control
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Top.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Top
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Top.ForeColor = System.Drawing.SystemColors.ControlText
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Top.Location = New System.Drawing.Point(0, 0)
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Top.Name = "_Planning_Fill_Panel_Toolbars_Dock_Area_Top"
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Top.Size = New System.Drawing.Size(1077, 52)
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Top.ToolbarsManager = Me.ToolBarMain
'_Planning_Fill_Panel_Toolbars_Dock_Area_Bottom
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Bottom.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Bottom.BackColor = System.Drawing.SystemColors.Control
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Bottom.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Bottom
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Bottom.ForeColor = System.Drawing.SystemColors.ControlText
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Bottom.Location = New System.Drawing.Point(0, 681)
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Bottom.Name = "_Planning_Fill_Panel_Toolbars_Dock_Area_Bottom"
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Bottom.Size = New System.Drawing.Size(1077, 0)
Me._Planning_Fill_Panel_Toolbars_Dock_Area_Bottom.ToolbarsManager = Me.ToolBarMain
Hello steva,
Could you please try to attach if possible a small sample project reproducing the above mentioned issue, I will be happy to take a look at it.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
The toolbar wasn't showing up because there was an unhandled exception in the form load event.