我想在事件出发是直接选中ComboBox,俺键盘可以直接出现在ComboBox上,请告诉解决下

解决方案 »

  1.   

    cbx.focus();
    想实现什么功能呢?
      

  2.   

    this.ActiveControl = combobox1;  //this
      

  3.   

    this.ActiveControl = combobox1; 
    不知道满足需求吗
      

  4.   

    this.ActiveControl=this.comboBox1
    protected override bool ProcessDialogKey(System.Windows.Forms.Keys aKey)  
    {  
    if(aKey ==Keys.Enter&&this.ActiveControl==this.comboBox1)  
    {  
    this.comboBox1.DroppedDown = true;  
    base.ProcessDialogKey(aKey);  
    return true;  
    }  
    base.ProcessDialogKey(aKey);  
    return false;  }