loop menustrip buttons

43

loop menustrip buttons -

foreach (ToolStripMenuItem item in menuStrip1.Items)
            {
                item.ForeColor = Color.Red;
                item.BackColor = Color.Blue;
                foreach (ToolStripMenuItem children in item.DropDownItems)
                {
                    children.ForeColor = Color.Red;
                    children.BackColor = Color.Blue;
                }
            }

Comments

Submit
0 Comments