怎样设置让一个按钮不能获取焦点?设置Canfocus 不行  因为它是只读的

解决方案 »

  1.   

    不要就给别人        private void button1_TabIndexChanged(object sender, EventArgs e)
            {
                if (button1.Focused == true)
                    textBox1.Focus();
            }        
            private void button1_MouseClick(object sender, MouseEventArgs e)
            {
                if (button1.Focused == true)
                    textBox1.Focus();
            }
      

  2.   

    +1
    http://msdn.microsoft.com/zh-cn/vstudio/system.windows.forms.control.tabstop.aspx
    TapStop详细介绍