Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
530
Unable to see toolbar at runtime - docking problem?
posted

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

Parents Reply Children