|
Question : Resize Combobox
|
|
i want to resize my comboboxes to match the size of the textboxes.
i've seen that i can use: cbo.DrawMode = DrawMode.OwnerDrawFixed cbo.ItemHeight =15
to specify a custom height.
the problem is that once i do that i can't see any items in the comboxbox dropdown. The dropdown is the correct height for the number of items, and if i click inside the dropdown it selects the text thats there, just i can't see the text.
i'm thinking i need to capture some event and maybe call the base class, just not sure which one or if i'm on the right track.
|
|
Answer : Resize Combobox
|
|
Just had a look around for you and there is a good example here: http://www.dotnet247.com/247reference/msgs/40/203845.aspx
You'll just have to adjust the listbox to combobox, as the same commands should apply to both without any issues. Let us know how it goes.
James
|
|
|
|