Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't remove "Custom toolbar" from the ribbon in my C# Add in

I'm currently developing an excel add in C#, but it show this empty "Custom toolbar" on the ribbon, what i did not create

I checked the xml of the ribbon, but it does not show anything like this:

    <code>
    <?xml version="1.0" encoding="UTF-8"?>
<customUI onLoad="Ribbon_Load" xmlns="http://schemas.microsoft.com/office/2006/01/customui">
    <ribbon>
        <tabs>
            <tab idMso="TabAddIns" label="Addin">
                <group id="devGroup" label="Developer" visible="false">
                    <comboBox id="cmbModules" screentip="Select Module" label="Modules" showImage="false" />
                    <button id="btnInstallModule" onAction="btnInstallModule_Click" label="Install" showImage="false" />
                    <button id="btnUninstall" onAction="btnUninstall_Click" label="Uninstall" showImage="false" />
                </group>
            </tab>
        </tabs>
    </ribbon>
</customUI>
</code>

[enter image description here

Anybody know anything about this issue?

private void ExcelRibbon_Load(object sender, RibbonUIEventArgs e) { cmbModules.Items.Clear();

        foreach (var module in PSAddinModules.ModuleHandler.ModuleList)
        {
            var dropDownItem = this.Factory.CreateRibbonDropDownItem();
            dropDownItem.Label = module.Value.Name;
            cmbModules.Items.Add(dropDownItem);
        }

    }

like image 480
csegeny92 Avatar asked Feb 17 '16 10:02

csegeny92


1 Answers

I had the same issue, caused by the Team Foundation Add-in. Tools --> Options --> Add-Ins, Manage COM Add-ins and disabled it there did the trick for me

like image 153
Chris H Avatar answered Sep 28 '22 11:09

Chris H