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
130
ControlContainerTool and toolbar
posted
Hi All, I am trying to add custom control to the ribbon tools using the code below. When form is loaded it trows exception: Object reference not set to an instance of an object. The same code for the PopupControlContainerTool works correct. Could anybody give me a hint what is the reason? Thanks in advance. ControlContainerTool controlContainerTool = new ControlContainerTool("textControl"); controlContainerTool.Control = new TextControl(); controlContainerTool.SharedProps.Caption = "textControl"; controlContainerTool.SharedProps.AllowMultipleInstances = false; ultraToolbarsManager1.Tools.Add(controlContainerTool); group.Tools.Add(controlContainerTool);
Parents Reply Children
No Data