c#按键时如何显示组合框上的所有项目?

时间:2018-02-14 14:16:23

标签: c# winforms combobox

我想显示combox的项目 当我按下键盘上的akey时

按键时如何显示组合框中的所有项目 当我点击回车键

时,我想这样做

然后组合框项目显示如此图像

enter image description here

private void comboBox4_KeyPress(object sender, EventArgs e){
   if(e.Keychar==(char)consoleKey.Enter){
       displayAllitems();
       //like the image
   }
}

0 个答案:

没有答案