Setting first MenuItem color in ToolStripMenu (C#, WinForms)

enter image description here

I’m here to ask for help or suggestions. I’m creating a custom menu with a darker color. Almost everything is fine. The only thing I don’t understand is why the first MenuItem has a default backcolor. The thing is the second one has the correct color. I don’t know if I’m missing something, like, the first one gets the set color at launch or what.

I tried my code on a test project where the strip has a default red color and on Form_Load I change it. They both work perfectly. This is the code I’m using


namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            menuStrip1.Renderer = new SkinRenderer(new MenuColorTable());
        }
        class MenuColorTable : ProfessionalColorTable
        {
            public MenuColorTable()
            {
                base.UseSystemColors = false;
            }
            public override Color MenuItemSelectedGradientBegin
            {
                get { return Color.FromArgb(12, 46, 73); }
            }
            public override Color MenuItemSelectedGradientEnd
            {
                get { return Color.FromArgb(12, 46, 73); }
            }
            public override Color MenuItemPressedGradientBegin
            {
                get { return Color.FromArgb(6, 6, 6); }
            }
            public override Color MenuItemPressedGradientMiddle
            {
                get { return Color.FromArgb(6, 6, 6); }
            }
            public override Color MenuItemPressedGradientEnd
            {
                get { return Color.FromArgb(6, 6, 6); }
            }
            public override Color MenuBorder
            {
                get { return Color.FromArgb(127, 127, 127); }
            }
            public override Color ToolStripDropDownBackground
            {
                get { return Color.FromArgb(2, 2, 2); }
            }
            public override Color ImageMarginGradientBegin
            {
                get { return Color.FromArgb(10, 10, 10); }
            }
            public override Color ImageMarginGradientMiddle
            {
                get { return Color.FromArgb(10, 10, 10); }
            }
            public override Color ImageMarginGradientEnd
            {
                get { return Color.FromArgb(10, 10, 10); }
            }
            public override System.Drawing.Color MenuItemBorder
            {
                get { return Color.FromArgb(40, 158, 255); }
            }
            public override Color MenuItemSelected
            {
                get { return Color.FromArgb(12, 46, 73); ; }
            }
        }

        private class SkinRenderer : ToolStripProfessionalRenderer
        {
            private SkinRenderer() : base() { }
            public SkinRenderer(MenuColorTable colorTable) : base(colorTable) => Console.WriteLine("test");
            protected override void OnRenderItemText(ToolStripItemTextRenderEventArgs e)
            {
                e.TextColor = Color.FromArgb(220, 220, 220); ;
                TextRenderer.DrawText(e.Graphics, e.Text, e.TextFont, e.TextRectangle, e.TextColor, e.TextFormat);
            }
            protected override void OnRenderArrow(ToolStripArrowRenderEventArgs e)
            {
                ToolStripMenuItem item = e.Item as ToolStripMenuItem;
                if (item != null) { e.ArrowColor = Color.FromArgb(220, 220, 220); }
                base.OnRenderArrow(e);
            }
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            menuStrip1.BackColor = Color.FromArgb(30, 30, 30);
        }
    }

}

I thought there was something in my code causing this behaviour but I’m not sure. I mean, it’s true at launch the strip has a default color and during the load event I change that color, but why the first item stays default white and the second instead becomes the same color as the strip as it should? Any ideas?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật