if I uncomment the below line (line 256) in the attached it is crashing and not displaying the menu, any idea how to fix this.
'Dim pasteTool As ToolBase = clipboardGroup.Tools.AddTool("Paste")
'pasteTool.InstanceProps.PreferredSizeOnRibbon = RibbonToolSize.Large
Did that suggestion work for you?
Peter,
Try adding a Try/Finally block in the Load event handler to display a MessageBox.Like so:
Me.UltraToolbarsManager1.BeginUpdate()
Try
Me.InitializeApplicationMenu()
Catch ex As Exception
MessageBox.Show(ex.Message)
Throw ex
Finally
Me.UltraToolbarsManager1.EndUpdate()
End Try
Let me know if that works for you,
Have you been able to sort this out?
It looks like the reason for the crash is that there is no tool in the Tools collection with the key of "Paste". Can you confirm that you have added a tool with the key of "Paste"?