Click here to Skip to main content
16,012,468 members
Home / Discussions / C#
   

C#

 
QuestionHow to create a style for a combobox in c# Pin
Arunkumar.Koloth3-Nov-11 7:14
Arunkumar.Koloth3-Nov-11 7:14 
AnswerRe: How to create a style for a combobox in c# Pin
Richard MacCutchan3-Nov-11 7:21
mveRichard MacCutchan3-Nov-11 7:21 
GeneralRe: How to create a style for a combobox in c# Pin
Arunkumar.Koloth3-Nov-11 18:21
Arunkumar.Koloth3-Nov-11 18:21 
GeneralRe: How to create a style for a combobox in c# Pin
Varsha Ramnani3-Nov-11 21:30
professionalVarsha Ramnani3-Nov-11 21:30 
GeneralRe: How to create a style for a combobox in c# Pin
Arunkumar.Koloth3-Nov-11 23:56
Arunkumar.Koloth3-Nov-11 23:56 
GeneralRe: How to create a style for a combobox in c# Pin
Richard MacCutchan3-Nov-11 23:28
mveRichard MacCutchan3-Nov-11 23:28 
GeneralRe: How to create a style for a combobox in c# Pin
Arunkumar.Koloth3-Nov-11 23:53
Arunkumar.Koloth3-Nov-11 23:53 
GeneralRe: How to create a style for a combobox in c# Pin
V.4-Nov-11 0:31
professionalV.4-Nov-11 0:31 
I'm not sure Winforms or even WPF allows this kind of theming natively. What you'll need to do is write your own usercontrol that inherits from the standard combobox. I think this usercontrol will consist of several standard controls:
- a textbox
- a button (that resembles the down arrow)
- an invisible panel, size: width = textbox, height = 0 (by default)

You then load this panel with the items (via labels or textblocks) and on click of the button the panel grows in size (at the position right below the textbox). When a label/textblock was clicked, the panel is closed again andf the text put in the textbox.

hope this helps.

PS: Please avoid text speech and mind the spelling (even if you're not native English)
V.

GeneralRe: How to create a style for a combobox in c# Pin
Subin Mavunkal4-Nov-11 2:36
Subin Mavunkal4-Nov-11 2:36 
GeneralRe: How to create a style for a combobox in c# Pin
V.4-Nov-11 3:07
professionalV.4-Nov-11 3:07 
GeneralRe: How to create a style for a combobox in c# Pin
Arunkumar.Koloth4-Nov-11 5:06
Arunkumar.Koloth4-Nov-11 5:06 
GeneralRe: How to create a style for a combobox in c# Pin
Richard MacCutchan4-Nov-11 0:33
mveRichard MacCutchan4-Nov-11 0:33 
AnswerRe: How to create a style for a combobox in c# Pin
Abhinav S4-Nov-11 1:11
Abhinav S4-Nov-11 1:11 
AnswerRe: How to create a style for a combobox in c# Pin
BillWoodruff4-Nov-11 1:22
professionalBillWoodruff4-Nov-11 1:22 
QuestionCustom Tab Control - Painting Tabs When Scrolling Pin
Matt U.3-Nov-11 6:54
Matt U.3-Nov-11 6:54 
AnswerRe: Custom Tab Control - Painting Tabs When Scrolling Pin
BobJanova4-Nov-11 6:06
BobJanova4-Nov-11 6:06 
QuestionSerial Port Class bug??? Pin
glennPattonWork33-Nov-11 5:47
professionalglennPattonWork33-Nov-11 5:47 
AnswerRe: Serial Port Class bug??? Pin
BobJanova3-Nov-11 6:02
BobJanova3-Nov-11 6:02 
GeneralRe: Serial Port Class bug??? Pin
glennPattonWork33-Nov-11 6:15
professionalglennPattonWork33-Nov-11 6:15 
AnswerRe: Serial Port Class bug??? Pin
Roger Wright3-Nov-11 7:01
professionalRoger Wright3-Nov-11 7:01 
GeneralRe: Serial Port Class bug??? Pin
glennPattonWork33-Nov-11 7:16
professionalglennPattonWork33-Nov-11 7:16 
AnswerRe: Serial Port Class bug??? Pin
Richard MacCutchan3-Nov-11 7:20
mveRichard MacCutchan3-Nov-11 7:20 
GeneralRe: Serial Port Class bug??? Pin
Luc Pattyn3-Nov-11 7:34
sitebuilderLuc Pattyn3-Nov-11 7:34 
GeneralRe: Serial Port Class bug??? Pin
Richard MacCutchan3-Nov-11 23:20
mveRichard MacCutchan3-Nov-11 23:20 
AnswerRe: Serial Port Class bug??? Pin
Luc Pattyn3-Nov-11 7:30
sitebuilderLuc Pattyn3-Nov-11 7:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.