Solved

Fully Owner drawn ComboBox

Posted on 2008-06-18
3
1,573 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 500 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.net Filesystem watcher not working 5 56
Starting to use Git with Visual  Studio Online 1 69
What!!!??? 5 60
CSS styling problem 3 27
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

734 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