469,919 Members | 2,140 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

down/up arrow key not working for selecting an item in combobox


i have written some code for selecting an item in combobox dropdown
list which is in datagrid columm. by scrolling the mouse we select any
item from the list.
but by pressing the down key arrow it is not working
can u tell me what are the properties i have to add to slect an item in

processcmdkey method.
code is:
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
case Keys.Down:
// toggle the dropdown state
this.DroppedDown ^= true;
this.AllowDrop = false;
this.DropDownStyle = ComboBoxStyle.DropDown;
//comb.DropDownStyle = ComboBoxStyle.DropDownList;
return true;
return base.ProcessCmdKey( ref msg, keyData );

Mar 7 '06 #1
0 1668

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Andy Bates | last post: by
7 posts views Thread by hung tran | last post: by
3 posts views Thread by - HAL9000 | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.