protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.Right)
{
if (tabControl1.SelectedIndex == 0)
{
TabPage t = tabControl1.TabPages[1];
tabControl1.SelectTab(t);
return true;
}
}
if (keyData == Keys.Left)
{
if (tabControl1.SelectedIndex == 6)
{
TabPage t = tabControl1.TabPages[5];
tabControl1.SelectTab(t);
return true;
}
}
return base.ProcessCmdKey(ref msg, keyData);
}