ComboBox painting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

I want to create my own custom ComboBox
I've overriden the OnPaint method and I am able to fill the whole clientrectangle of the combobox with a specific color as shown here

protected override void OnPaint(PaintEventArgs pe

pe.Graphics.FillRectangle(System.Drawing.Brushes.Blue,0,0,Width,Height)


The next thing, I want to achieve is to draw this region around the dropdown arrow. But how can I figure out, how big this region is?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top