And this is code in Ribbon.cs public void OnSRSGenerator(Office.IRibbonControl control, bool isChecked){ Globals.ThisAddIn.CustomTaskPanes[0].Visible = isChecked; }
But I don't know how to make Checkbox in Ribbon automatically uncheck when custom task pane closed (eg, user cllick x button in custom taskpane).