I tried to set CurrentUICulture of the application at run time. However, the menu items in my forms remained unchanged. Do I have to do something additional to changing CurrentUICulture?
Late to the party again. But here's a solution I came up with:
public partial class MainForm : Form {
public MainForm() {
InitializeComponent();
}
private void mnuCultureEnglish_Click( object sender, EventArgs e ) {
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo( "en-US" );
Controls.Clear();
InitializeComponent();
}
private void mnuCultureGerman_Click( object sender, EventArgs e ) {
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo( "de-DE" );
Controls.Clear();
InitializeComponent();
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With