ComboBox DropDown Height

  • Thread starter Thread starter Benjamin Lukner
  • Start date Start date
B

Benjamin Lukner

Hi!

I have to include some combo boxes having 11 entries each.
But the CF ComboBox only allows a maximum of 8 entries visible at once.
I've found some code at
http://vbnet.mvps.org/index.html?code/comboapi/comboheight.htm that may
work, but I have to pass the handles of the combo box and form.

Is there any possibility to set the dropdown height to e.g. 15 entries?

Kind regards,

Benjamin Lukner
 
I've been working on a ComboBoxEx control for the next SDF version. This
uses the standard ComboBox but implements a number of missing properties by
sending messages to the control handle.
http://blog.opennetcf.org/pfoot/PermaLink.aspx?guid=dd0fe46e-dd82-428c-9982-323ef182f25c
You can view the source online here:-
http://www.opennetcf.org/sourcebrow.../Source/OpenNETCF.Windows.Forms/ComboBoxEx.cs

From memory I don't think I've implemented the height yet (and am not sure
if you can set this on CE - couldn't see it in the list of CB_* windows
messages). Anyhow, with the above code you should be able to add this
property yourself using your desktop code sample and copying the behaviour
of the other properties.

Peter
 
Peter said:
I've been working on a ComboBoxEx control for the next SDF version. This
uses the standard ComboBox but implements a number of missing properties by
sending messages to the control handle.
http://blog.opennetcf.org/pfoot/PermaLink.aspx?guid=dd0fe46e-dd82-428c-9982-323ef182f25c
You can view the source online here:-
http://www.opennetcf.org/sourcebrow.../Source/OpenNETCF.Windows.Forms/ComboBoxEx.cs

Hi!

Thanks for your answer.
I'm now able to get the controls' handles, but the code I mentioned
seems to have no effect...

If I find a solution I'll post it here.


Kind regards,

Benjamin Lukner
 
Back
Top