Donate

Save RGB Color To SolidBrush Object In C#

To save a RGB color to a Solidbrush object, pass the RGB color in the solidbrush constructor.
SolidBrush brush = new SolidBrush(Color.FromArgb(211, 222, 229));
Then apply it in your graphics method.
evs.Graphics.FillRectangle(brush, evs.CellBounds);
Cheers!

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

How To Insert Or Add Emojis In Microsoft Teams Status Message

Bootstrap Modal In ASP.NET MVC With CRUD Operations