Solved

Fully Owner drawn ComboBox

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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

707 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