We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1830975 commit bd2f32bCopy full SHA for bd2f32b
Form1.cs
@@ -35,9 +35,11 @@ public Form1()
35
InitializeComponent();
36
foreach (ToolStripTabItem items in this.ribbonControlAdv1.Header.MainItems)
37
{
38
- foreach (ToolStripEx item in items.Panel.Controls)
+ foreach (var item in items.Panel.Controls)
39
40
- item.LauncherClick += new EventHandler(item_LauncherClick);
+ ToolStripEx toolStripEx = item as ToolStripEx;
41
+ if(toolStripEx != null)
42
+ toolStripEx.LauncherClick += new EventHandler(item_LauncherClick);
43
}
44
45
PopulateColorTable();
0 commit comments