you can set the typeto language in the label text in one of the forms, and then choose the language you want to show to the end user, compared to the language with the IE label text, if the label text is French, then you can show all your control names in French
NOte: only works after you create a resx file in French and manually rewrite all the names of shortcuts and buttons in French as a name, something like this.
Name value ----------- ------------- lblname.text frenchtype name using System; using System.IO; using System.Linq; using System.Data; using System.Text; using System.Diagnostics; using System.Windows.Forms; using System.Collections.Generic; using System.ComponentModel; public partial class Form1 : Form { public form1() { System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("fr-FR"); getlanguagaefile(); InitializeComponent(); }
you can display french for all label texts and button texts when the form loads
private void applyResources(ComponentResourceManager resources, Control.ControlCollection controlCollection) { foreach (Control ctl in controlCollection) { resources.ApplyResources(ctl, ctl.Name); applyResources(resources, ctl.Controls); } } }
source share