are you sure? if a control's Enabled = false, its CanFocus should be falsefrom Control.CanFocus documentation:In order for a control to receive input focus, the control must have a handle assigned to it, and the Visible and Enabled properties must both be set to true

解决方案 »

  1.   

    在事件getfocuse中,写其它控件.focuse()
    加上 cbb.tabstop=false
    按钮有不显示焦点的属性,cbb没看过,你找找看
      

  2.   

    老大又光临了,哈哈,多谢哦又检查了一遍,确实是Enabled=false,textbox这样设置之后,就不能获得焦点了,可combobox却还能获得焦点canfocus是只读的,不能设置老大再帮忙想想其它简单的办法,多谢了    :)
      

  3.   

    combobox.enable=false之后,仍能获得焦点这个好象不能... 
      

  4.   

    找到问题了,我的combobox是借用别人写的控件,如果用系统的combobox,就不会获得焦点了,呵呵可我还是想用别人写好的控件,这样界面是一致的,只是不想让它获得焦点    :)呵呵,有点麻烦
      

  5.   

    你是怎么得到焦点的?在VS.NET 2002上三个控件Button1
    ComboBox1
    Button2如果ComboBox1.Enabled=false
    1。该控件变成不可选
    2。如果焦点在Button1上,TAB,焦点则转到Button2上
      

  6.   

    not sure if it works, but try to doYourControl.SetStyle(ControlStyles.Selectable ,false);
      

  7.   

    这么多带星的,嘻嘻~~~~~~~~~~~~~~~~可惜,我的控件里没有SetStyle属性                     :(看来只能让它这样了,let it be.................555555555555555555555555