469,579 Members | 1,782 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,579 developers. It's quick & easy.

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 OnSelectedIndexChanged(System.EventArgs e) {
if (SelectedIndex != 0 || DropDownStyle != ComboBoxStyle.DropDown) {
base.OnSelectedIndexChanged(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: OnSelectedIndexChanged does not occur if mouse
activates first item.
Why OnSelectedIndexChanged when first item is selected from keyboard ? How
to postpone this event until dropdown menu is closed ?

Andrus.
Feb 10 '08 #1
0 2401

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by jean | last post: by
7 posts views Thread by NCrum | last post: by
reply views Thread by Mike | last post: by
4 posts views Thread by Kalvin | last post: by
5 posts views Thread by Gil | last post: by
4 posts views Thread by Andrus | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.