Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 30th, 2012  |  syntax: None  |  size: 0.25 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. In Winforms, how do I override the OnDropDown method of a ComboBox?
  2. protected override void OnDropDown(EventArgs e)
  3. {
  4.   DropDownForm dropDown = new DropDownForm();
  5.  
  6.   // Locate at correct location.
  7.   DropDownForm.Location = ...;
  8.  
  9.   DropDownForm.Show();
  10. }