loop menustrip buttons

Code Example - 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;
                }
            }