ComboBox stay DroppedDown

M

marianowic

Hello everyone.
The whole day I'm fighting with this, as I seem, problem.
I made, based on a listed below article, custon ComboBox with
CheckBoxes as items. Everything works greate except hte list, that
hides and shoows itself. I would like it to stay visible until an user
click outside the control or an arrov on the control. Has anyone got
any idea??
Thanks for help... marianowic


ARTICLE: http://www.codeproject.com/cs/combobox/CheckComboBox.asp
 
C

cfps.Christian

Hello everyone.
The whole day I'm fighting with this, as I seem, problem.
I made, based on a listed below article, custon ComboBox with
CheckBoxes as items. Everything works greate except hte list, that
hides and shoows itself. I would like it to stay visible until an user
click outside the control or an arrov on the control. Has anyone got
any idea??
Thanks for help... marianowic

ARTICLE:http://www.codeproject.com/cs/combobox/CheckComboBox.asp

Why can you not do the work yourself with a CheckedListbox? Create
the listbox and make it so when it gets focus it expands to a certain
size then resize it back down whenever you lose focus. Sure it
wouldn't have ALL the same functionality of the combo but you could
work some of that in.
 
M

marianowic

Yea, but it will loose some important features.
That is why I want to do it as a custom ComboBox with CheckBoxes, nut
with CheckedLIstBox.
Any idea??
 
C

cfps.Christian

Yea, but it will loose some important features.
That is why I want to do it as a custom ComboBox with CheckBoxes, nut
with CheckedLIstBox.
Any idea??

There are two possible solutions I can think of:
1. Create a user control of the checked listbox and add features to
mimic the ability of the checked combo and simply resize the listbox
on lostfocus/focus
2. Use the checked combobox and override the lostfocus of the box so
that the list doesn't disappear
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top