Solved

Fully Owner drawn ComboBox

Posted on 2008-06-18
3
1,554 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
3 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now