C# ComboBox extension

Status
Not open for further replies.

thesadguy

Active Member
Joined
Nov 29, 2008
Messages
70
Reaction score
0
Hi all...

I'm still busy with my foray into C#.

I'd like to be able to extend a System.Windows.Forms.ComboBox to customise the way it looks. Can anyone please give me some guidance as to how to do the following:

1) Can I make the text-portion of the ComboBox invisible? So that only the dropdown arrow is visible. Then clicking on the dropdown arrow makes the list drop down (seemingly out of nowhere).
2) Can I customise what the dropdown arrow looks like? The standard arrow is too plain, and I'd like to create a sleeker look
 
Hi all...

I'm still busy with my foray into C#.

I'd like to be able to extend a System.Windows.Forms.ComboBox to customise the way it looks. Can anyone please give me some guidance as to how to do the following:

1) Can I make the text-portion of the ComboBox invisible? So that only the dropdown arrow is visible. Then clicking on the dropdown arrow makes the list drop down (seemingly out of nowhere).
2) Can I customise what the dropdown arrow looks like? The standard arrow is too plain, and I'd like to create a sleeker look

The OnPaint method will need to be re-written/modified. I can't remember the name, but you get software that opens up the standard methods for controls. I'll get back to you on that one.
 
I had to do that with MenuItems once in 2003, to get a "menu icon" displayed next to the text... Was fun.
 
Have you learned about UserControls yet?

Sounds like what you are trying to do would best be done by creating a usercontrol that inherited from ComboBox
 
Status
Not open for further replies.
Top
Sign up to the MyBroadband newsletter
X