[Fix] Dark mode arrow - toolstrip (toolbar)

11 views
Skip to first unread message

Motasem Zindaqi

unread,
Mar 4, 2022, 3:20:10 AM3/4/22
to RegistryFinder
Dear,

You can change the arrow color in toolbar using this code:
public class MyDarkThemeRendarer: ToolStripRenderer { protected override void OnRenderArrow(ToolStripArrowRenderEventArgs e) { e.ArrowColor = Color.White; base.OnRenderArrow(e); } }


--
usage:
toolStrip1.Renderer = new  MyDarkThemeRendarer();

Best Regards,
Motasem Zindaqi

Motasem Zindaqi

unread,
Mar 4, 2022, 3:22:27 AM3/4/22
to RegistryFinder
public class MyDarkThemeRenderer: ToolStripRenderer {


  protected override void OnRenderArrow(ToolStripArrowRenderEventArgs e) {
    e.ArrowColor = Color.White;
    base.OnRenderArrow(e);
  }

}

-----
usage:
toolStrip1.Renderer = new  MyDarkThemeRenderer();
Reply all
Reply to author
Forward
0 new messages