How do you change that ugly blue color that you get when you select something in a listbox in Windows Forms? All of the solutions I was able to find either include re-creating the whole control, or just using WPF. Is there any way to do it within WinForms?
How do you change that ugly blue color that you get when you select
Share
Set
DrawModeof your listBox toOwnerDrawFixedand subscribe toDrawItemevent:You can determine state of drawing item by checking
e.Stateproperty of event argument. If state isSelected, then use whatever brush you like (e.g. Red) to fill item line.