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
425
Refresh issue after adding a button to FileMenu
posted

Hi, 

I added a button tool at runtime but it will not shown in the FileMenu. When I switch to another menu group and switch back to the FileMenu, the button tool is shown correctly. Is there a refresh call or something else? My code is the following (NetAdvantage Forms version is 2012.1 - .net runtime 2.0):

 

                ultraToolbarsManager1.BeginUpdate();

                string toolKey = Guid.NewGuid().ToString();

                ButtonTool buttonTool = new ButtonTool(toolKey);

                buttonTool.SharedProps.Caption = "Hello World";

                ultraToolbarsManager1.Tools.Add(buttonTool);

                ultraToolbarsManager1.Ribbon.ApplicationMenu2010.NavigationMenu.Tools.InsertTool(0, toolKey);

                ultraToolbarsManager1.EndUpdate();

Thanks

BR

Sven

Parents Reply Children