Change the design of the ComboBox

I need to change the design of Windows Forms ComboBox to the following:
enter image description here

Do I need to redesign the button and inherit from UserControl and run all the functions from scratch?

Or enough to inherit from ComboBox , and all I have to do is change the graphics?
And if so, how do I do this?

+7
source share
2 answers

Do you need to use winforms? In .NET WPF, it's much easier to change the style of combined fields (and other controls). You can find numerous tutorials and / or examples on the Internet.

+1
source

It is enough to inherit from ComboBox and redefine only the drawing functionality.

 protected override void OnPaint(PaintEventArgs e) { // your drawing comes code here } 

The parameter gives you a Graphics instance through which you can draw anything. Lines, arcs, even images. I do not know the exact definition of the graphic that you showed, so try to figure out how to draw it.

0
source

All Articles