Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Localizing the shortcut keys

$
0
0

Hi,

I am trying to localize the shortcut keys to French from English. I have specified my shortcut keys in a xml file which will be read through the code.

For e.g. I have a shortcut specified (Alt + Left) Now I want to localize to French (Alt + Gauche).

If I specify the french shortcut in xml I am getting an error.

the code which I use 

this.shortcutKeys.Add( (Keys)Enum.Parse(typeof(Keys), key, true) );

Keys - refers to System.Windows.Forms.Design.ShortcutKeysEditor

key is the shortcut contol like Alt, Ctrl, Left etc.

Let me know If I use French keyword in xml file and and the System.Windows.Forms.Design.ShortcutKeysEditor recogonizes automatically. Otherwise what I must do.

Thanks in advance.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>