Answers for "make a hot keys in winforms c# menu bar"

C#
0

make a hot keys in winforms c# menu bar

public void SetupMyMenuItem()
{
   // Set the caption for the menu item.
   menuItem1.Text = "&New";
   // Assign a shortcut key.
   menuItem1.Shortcut = Shortcut.CtrlN;
   // Make the menu item visible.
   menuItem1.Visible = true;
   // Display the shortcut key combination.
   menuItem1.ShowShortcut = true;
}
Posted by: Guest on April-24-2021

C# Answers by Framework

Browse Popular Code Answers by Language