PC Review


Reply
Thread Tools Rate Thread

ComboBox DropDown Height

 
 
Benjamin Lukner
Guest
Posts: n/a
 
      15th Nov 2004
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?cod...omboheight.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
 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      15th Nov 2004
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/Perm...2-323ef182f25c
You can view the source online here:-
http://www.opennetcf.org/sourcebrows.../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 Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

"Benjamin Lukner" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> 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?cod...omboheight.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



 
Reply With Quote
 
Benjamin Lukner
Guest
Posts: n/a
 
      17th Nov 2004
Peter Foot [MVP] wrote:

> 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/Perm...2-323ef182f25c
> You can view the source online here:-
> http://www.opennetcf.org/sourcebrows.../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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Bug: Combobox.dropdown = True during Form.Load event handler causes listbox to be disabled, even though combobox is Enabled. Herfried K. Wagner [MVP] Microsoft Dot NET Framework Forms 0 12th Feb 2004 10:00 PM
Bug: Combobox.dropdown = True during Form.New() causes listbox to be disabled, even though combobox is Enabled. =?Utf-8?B?UmF0a2lsZXk=?= Microsoft Dot NET Framework Forms 1 12th Feb 2004 09:58 PM
Bug: Combobox.dropdown = True during Form.Load event handler causes listbox to be disabled, even though combobox is Enabled. =?Utf-8?B?UmF0a2lsZXk=?= Microsoft Dot NET Framework 0 12th Feb 2004 07:16 PM
How to control height and location of custom dropdown combobox saragwyn Microsoft C# .NET 0 1st Aug 2003 07:57 PM
Controlling height of dropdown listbox in OwnerDrawn combobox Aravind Thoram Microsoft Dot NET Framework Forms 0 16th Jul 2003 02:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:43 AM.