How do I create a dropdown window?

  • Thread starter Thread starter Declan Brennan
  • Start date Start date
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.
 
Back
Top