?
Solved

Fully Owner drawn ComboBox

Posted on 2008-06-18
3
Medium Priority
?
1,583 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

762 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