The Alt-letter causes the BarItem to issue a Selected event. I cannot use the Selected event to handle action activation since it’s issued also when mouse is moved over the item.
It appears as if there is no consistant way for both keyboard and mouse to activate a BarItem.
Could I force an XPMenus.BarItem to issue a Click event when I use Alt+Letter for a BarItem, directly added to an XPMenus.Bar.
ADAdministrator Syncfusion Team September 14, 2004 08:37 AM
You could use the following workaround to force the BarItem to issue a Click event when Alt+Letter is pressed.
// Override the host form''s ProcessCmdKey method as shown in code below :
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
if (keyData == (Keys.Alt | Keys.F))
else if (keyData == (Keys.Alt | Keys.E))
else if (keyData == (Keys.Alt | Keys.V))
else if (keyData == (Keys.Alt | Keys.H))
return base.ProcessCmdKey (ref msg, keyData);
Please refer to the sample attached here that illustrates this and let me know if this works for you.