How do I create a dropdown window?

D

Declan Brennan

I'm interested in implementing a dropdown window within my
own custom control similar to what occurs with ComboBox
and DateTimePicker. Examples of this functionality exist
in IWindowsFormsEditorService.DropDownControl() or the
createPopup() method in IE. This window should have no
caption and be TopMost (both easy to achieve). More
difficult, the form performing the dropdown should retain
the activation even when clicks occur in the dropdown and
clicks anywhere on the form performing the dropdown (even
in non-client areas) should close the dropdown. If anybody
has a little code snipet that does this job, I'll be very
grateful.

Thanks,

Dec.
 

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