There is an easier way of achieving this. First of all, it is enough to set the UseMnemonics
properties to True
and then you can set the underlined letter by an ampersand before it:
This will make the 'e' letter underlined, but the item will not react to any keyboard input. You can fix this by using our shortcuts mechanism. Please refer to the following code:
We add a shortcut to the item and subscribe to its click event because when the shortcut is executed, the click event of the item is fired (but the pages are selected on the MouseDown
event which is not fired). So we handle the click event of the item and select its corresponding page. Please refer to the following snippet:
RadPageView1.SelectedPage = TryCast(sender, RadPageViewItem).Page
Another approach is to implement your own custom shortcut provider. You can find more information about shortcuts on the link
that Richard posted.
I hope this was helpful. Should you have any further questions, do not hesitate to ask.
the Telerik team
Check out the Q1 2011 Roadmap
for Telerik Controls for Windows Forms.