Open picklist from ComboBox dropdown

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrus

    Open picklist from ComboBox dropdown

    SWF ComboBox dropdown menu first item selection must open picklist.
    For this I use the following code:

    protected override void OnSelectedIndex Changed(System. EventArgs e) {
    if (SelectedIndex != 0 || DropDownStyle != ComboBoxStyle.D ropDown) {
    base.OnSelected IndexChanged(e) ;
    return;
    }
    OpenPickList();
    }

    This causes picklist to open immediately if keyboard arrow key *activates*
    to this item.
    How to force OpenPickList() call only if user *selects* first menu item from
    keyboard using enter or closing menu by F4 ?
    Using mouse this works OK: OnSelectedIndex Changed does not occur if mouse
    activates first item.
    Why OnSelectedIndex Changed when first item is selected from keyboard ? How
    to postpone this event until dropdown menu is closed ?

    Andrus.


Working...