用户控件不会显示在Excelfunction区?

我使用Visual Studio和C#做了一个excel addIn。 我有一个function区devise器,以及我所做的用户控件,非常基本,它只有一个标签,一个文本框和一个button。 基本上,我想我的function区中的button来调用我的代码,我已经在我的代码中编码:

private void button1_Click(object sender, RibbonControlEventArgs e) { UC_License uc = new UC_License(); uc.Show(); if (uc.success() == true) { this.lbl_Lisence.Label = lbl_Lisence.Label + " - Correct."; } else if (uc.success() == false) { this.lbl_Lisence.Label = lbl_Lisence + " - Incorrect."; } } 

一切运行或编译或build立罚款(没有错误),但是当我打开excel,我的addIn在那里,没关系。 但我的用户控制不显示?

excelfunction区是否只能使用devise师的元素或组件?

相当丢失。