C#控件自带的快捷键怎样取消(TabControl)
tabControl中点击左右键就会使tabpage切换,想禁用掉这个功能该怎么做?
C#
tabcontrol
禁用快捷键
------解决方案--------------------参考:
Disable default shortcuts on a TabControl
http://stackoverflow.com/questions/1952839/disable-default-shortcuts-on-a-tabcontrol
------解决方案-------------------- private void tabControl1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Left
------解决方案--------------------
e.KeyCode == Keys.Right)
{
e.Handled = true;
}
}