, , , .
( WFA) , : tab0ToolStripMenuItem ect.
I set the visibility property of the menu item False, and each menu item is ShortcutKeys, for example Ctrl + 1
Then hover click events to:
private void tab0ToolStripMenuItem_Click(object sender, EventArgs e)
{
this.tabControl1.SelectedIndex = 0;
}
private void tab1ToolStripMenuItem_Click(object sender, EventArgs e)
{
this.tabControl1.SelectedIndex = 1;
}
private void tab2ToolStripMenuItem_Click(object sender, EventArgs e)
{
this.tabControl1.SelectedIndex = 2;
}
private void tab3ToolStripMenuItem_Click(object sender, EventArgs e)
{
this.tabControl1.SelectedIndex = 3;
}
This is probably bad and new to this, but it works, I hope this helps you or anyone else in this matter.
source
share