Changing the border color of a Combobox on focus
问题 I have a custom ComboBox . I want to give a custom BorderColor to the ComboBox , when it is focused. To do this, I'm using the following code: Graphics g = Graphics.FromHwnd(Handle); Rectangle bounds = new Rectangle(0, 0, Width, Height); ControlPaint.DrawBorder(g, bounds, BaseConfigurations.StyleColor, ButtonBorderStyle.Solid); The thing is, if I use the code inside the MouseHover event when I move the mouse on the ComboBox control, I can see that it works. However, the same code does not