How to select toolStripSplitButton using keyboard shortcut?
Could someone please tell me how to select toolStripSplitButton using keyboard shortcut
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sudhakar ChaudharyRank #1,379 · 1.2K reputationPosted Oct 29, 2012, 2:59 AM EDT
{
toolStripSplitButton1.ShowDropDown();
}
Sudhakar ChaudharyRank #1,379 · 1.2K reputationPosted Oct 29, 2012, 2:33 AM EDT
on the form keyDown event
private void mdi_KeyDown(object sender, KeyEventArgs e)
{
if (e.Control && e.KeyCode.ToString() == "B")
{
toolStripButton1_Click(sender, e);//---call the click event of Toolstripbutton1 if require
toolStripButton1.Select();//-------select Toolstripbutton1
}
}
it works on ctrl+B
thanks.
Prathap39 reputationPosted Oct 29, 2012, 2:43 AM EDT
Prathap39 reputationPosted Oct 29, 2012, 2:46 AM EDT
Prathap39 reputationPosted Oct 29, 2012, 3:01 AM EDT