Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Fully Owner drawn ComboBox

Posted on 2008-06-18
3
Medium Priority
?
1,588 Views
Last Modified: 2012-06-22
Hi,
    I want to create an Owner drawn combo box.
    In most examples of owner drawn ComboBox in C#, I found that though we can create a new look for the combobox, the scrollbar, which appears when the ComboBox is expanded, is not owner drawn.

    How do I create an Owner Drawn combobox with the scrollbar also customized? It would be grateful if you could provide the code also.
0
Comment
Question by:CuteBug
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 2000 total points
ID: 21819351
well, the problem is that most examples override the DrawItem event. This won't allow you to customize anything but the item itself. You will have to use much Interop for this and override the native WM_PAINT message.
Here is some example:
http://www.codeproject.com/KB/combobox/ComboBox.aspx
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question