title: How to add language change for label in C# with .RESX
body: <p>This code</p>
  <pre><code>using System.Drawing;
  using System.Collections;
  using System.ComponentModel;
  using System.Windows.Forms;
  using System.Resources;
  using System.Reflection;
  using System.IO;
  
  namespace pomod.source
  {
      /// &lt;summary&gt;
      /// Summary description for About.
      /// &lt;/summary&gt;
      public class About : System.Windows.Forms.Form
      {
          private System.Windows.Forms.TabControl tabControl1;
          private System.Windows.Forms.TabPage tabCredits;
          private System.Windows.Forms.TabPage tabVersion;
          private System.Windows.Forms.Label label1;
          private System.Windows.Forms.Label label2;
          private System.Windows.Forms.Label label3;
          private System.Windows.Forms.Label label4;
          private System.Windows.Forms.Label label5;
          private System.Windows.Forms.Label label6;
          private System.Windows.Forms.Label label7;
          private System.Windows.Forms.Label label8;
          private System.Windows.Forms.TabPage tabGreetings;
          private System.Windows.Forms.Label label9;
          private System.Windows.Forms.Label label10;
          private System.Windows.Forms.Label label11;
          private System.Windows.Forms.Label label12;
          private System.Windows.Forms.Label label13;
          private System.Windows.Forms.Label label14;
          private TabPage tabPage1;
          private TextBox textBox1;
          private Label lbl_perftest;
          private System.Windows.Forms.PictureBox pictureBoxPOMOD;
  
          public About()
          {
              //
              // Required for Windows Form Designer support
              //
              InitializeComponent();
          }
          #region Languages
          private void SetLanguage(int i)
          {
              ResourceManager rm = null;
              switch (i)
              {
                  case 0:
                      rm = new ResourceManager(&quot;pomod.Languages.English&quot;, Assembly.GetExecutingAssembly());
                      break;
                  case 1:
                      rm = new ResourceManager(&quot;pomod.Languages.Catalan&quot;, Assembly.GetExecutingAssembly());
                      break;
                  case 2:
                      rm = new ResourceManager(&quot;pomod.Languages.Spanish&quot;, Assembly.GetExecutingAssembly());
                      break;
              }
              tabControl1.TabPages[0].Text = rm.GetString(&quot;tabVersion&quot;);
              tabControl1.TabPages[1].Text = rm.GetString(&quot;tabCredits&quot;);
              tabControl1.TabPages[2].Text = rm.GetString(&quot;tabGreetings&quot;);
              tabControl1.TabPages[3].Text = rm.GetString(&quot;tabChangelog&quot;);
              lbl_perftest.Text = rm.GetString(&quot;lbl_perftest&quot;);
          }
          #endregion
  
          /// &lt;summary&gt;
          /// Clean up any resources being used.
          /// &lt;/summary&gt;
          protected override void Dispose( bool disposing )
          {
              base.Dispose( disposing );
          }
  
          #region Windows Form Designer generated code
          /// &lt;summary&gt;
          /// Required method for Designer support - do not modify
          /// the contents of this method with the code editor.
          /// &lt;/summary&gt;
          private void InitializeComponent()
          {
              System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(About));
              this.pictureBoxPOMOD = new System.Windows.Forms.PictureBox();
              this.tabControl1 = new System.Windows.Forms.TabControl();
              this.tabVersion = new System.Windows.Forms.TabPage();
              this.lbl_perftest = new System.Windows.Forms.Label();
              this.label8 = new System.Windows.Forms.Label();
              this.label7 = new System.Windows.Forms.Label();
              this.label6 = new System.Windows.Forms.Label();
              this.tabCredits = new System.Windows.Forms.TabPage();
              this.label5 = new System.Windows.Forms.Label();
              this.label4 = new System.Windows.Forms.Label();
              this.label3 = new System.Windows.Forms.Label();
              this.label2 = new System.Windows.Forms.Label();
              this.tabGreetings = new System.Windows.Forms.TabPage();
              this.label12 = new System.Windows.Forms.Label();
              this.label11 = new System.Windows.Forms.Label();
              this.label10 = new System.Windows.Forms.Label();
              this.label9 = new System.Windows.Forms.Label();
              this.label13 = new System.Windows.Forms.Label();
              this.tabPage1 = new System.Windows.Forms.TabPage();
              this.textBox1 = new System.Windows.Forms.TextBox();
              this.label1 = new System.Windows.Forms.Label();
              this.label14 = new System.Windows.Forms.Label();
              // 
              // pictureBoxPOMOD
              // 
              this.pictureBoxPOMOD.Image = ((System.Drawing.Image)(resources.GetObject(&quot;pictureBoxPOMOD.Image&quot;)));
              this.pictureBoxPOMOD.Location = new System.Drawing.Point(0, 142);
              this.pictureBoxPOMOD.Size = new System.Drawing.Size(240, 88);
              this.pictureBoxPOMOD.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
              // 
              // tabControl1
              // 
              this.tabControl1.Controls.Add(this.tabVersion);
              this.tabControl1.Controls.Add(this.tabCredits);
              this.tabControl1.Controls.Add(this.tabGreetings);
              this.tabControl1.Controls.Add(this.tabPage1);
              this.tabControl1.Location = new System.Drawing.Point(0, 0);
              this.tabControl1.SelectedIndex = 0;
              this.tabControl1.Size = new System.Drawing.Size(240, 136);
              // 
              // tabVersion
              // 
              this.tabVersion.Controls.Add(this.lbl_perftest);
              this.tabVersion.Controls.Add(this.label8);
              this.tabVersion.Controls.Add(this.label7);
              this.tabVersion.Controls.Add(this.label6);
              this.tabVersion.Location = new System.Drawing.Point(0, 0);
              this.tabVersion.Size = new System.Drawing.Size(240, 106);
              this.tabVersion.Text = &quot;Version&quot;;
              // 
              // lbl_perftest
              // 
              this.lbl_perftest.Font = new System.Drawing.Font(&quot;Microsoft Sans Serif&quot;, 7F, System.Drawing.FontStyle.Bold);
              this.lbl_perftest.Location = new System.Drawing.Point(16, 74);
              this.lbl_perftest.Size = new System.Drawing.Size(216, 32);
              this.lbl_perftest.Text = &quot;lbl_perftest&quot;;
              this.lbl_perftest.ParentChanged += new System.EventHandler(this.lbl_perftest_ParentChanged_1);
              // 
              // label8
              // 
              this.label8.Font = new System.Drawing.Font(&quot;Verdana&quot;, 8.25F, System.Drawing.FontStyle.Regular);
              this.label8.Location = new System.Drawing.Point(16, 48);
              this.label8.Size = new System.Drawing.Size(192, 16);
              this.label8.Text = &quot;fmod: 3.75&quot;;
              // 
              // label7
              // 
              this.label7.Font = new System.Drawing.Font(&quot;Verdana&quot;, 8.25F, System.Drawing.FontStyle.Regular);
              this.label7.Location = new System.Drawing.Point(16, 32);
              this.label7.Size = new System.Drawing.Size(192, 16);
              this.label7.Text = &quot;pomod: 0.7.7&quot;;
              // 
              // label6
              // 
              this.label6.Font = new System.Drawing.Font(&quot;Verdana&quot;, 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))));
              this.label6.Location = new System.Drawing.Point(16, 16);
              this.label6.Size = new System.Drawing.Size(192, 16);
              this.label6.Text = &quot;Version&quot;;
              // 
              // tabCredits
              // 
              this.tabCredits.Controls.Add(this.label5);
              this.tabCredits.Controls.Add(this.label4);
              this.tabCredits.Controls.Add(this.label3);
              this.tabCredits.Controls.Add(this.label2);
              this.tabCredits.Location = new System.Drawing.Point(0, 0);
              this.tabCredits.Size = new System.Drawing.Size(232, 104);
              this.tabCredits.Text = &quot;Credits&quot;;
              // 
              // label5
              // 
              this.label5.Font = new System.Drawing.Font(&quot;Verdana&quot;, 8.25F, System.Drawing.FontStyle.Regular);
              this.label5.Location = new System.Drawing.Point(16, 64);
              this.label5.Size = new System.Drawing.Size(200, 17);
              this.label5.Text = &quot;Testing: Blah&quot;;
              // 
              // label4
              // 
              this.label4.Font = new System.Drawing.Font(&quot;Verdana&quot;, 8.25F, System.Drawing.FontStyle.Regular);
              this.label4.Location = new System.Drawing.Point(16, 48);
              this.label4.Size = new System.Drawing.Size(200, 17);
              this.label4.Text = &quot;Design: BlahBlah&quot;;
              // 
              // label3
              // 
              this.label3.Font = new System.Drawing.Font(&quot;Verdana&quot;, 8.25F, System.Drawing.FontStyle.Regular);
              this.label3.Location = new System.Drawing.Point(16, 32);
              this.label3.Size = new System.Drawing.Size(200, 17);
              this.label3.Text = &quot;Code: BlahBlah&quot;;
              // 
              // label2
              // 
              this.label2.Font = new System.Drawing.Font(&quot;Verdana&quot;, 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))));
              this.label2.Location = new System.Drawing.Point(16, 16);
              this.label2.Size = new System.Drawing.Size(200, 16);
              this.label2.Text = &quot;Credits&quot;;
              // 
              // tabGreetings
              // 
              this.tabGreetings.Controls.Add(this.label12);
              this.tabGreetings.Controls.Add(this.label11);
              this.tabGreetings.Controls.Add(this.label10);
              this.tabGreetings.Controls.Add(this.label9);
              this.tabGreetings.Controls.Add(this.label13);
              this.tabGreetings.Location = new System.Drawing.Point(0, 0);
              this.tabGreetings.Size = new System.Drawing.Size(232, 104);
              this.tabGreetings.Text = &quot;Greetings&quot;;
              // 
              // label12
              // 
              this.label12.Font = new System.Drawing.Font(&quot;Verdana&quot;, 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))));
              this.label12.Location = new System.Drawing.Point(136, 91);
              this.label12.Size = new System.Drawing.Size(88, 16);
              this.label12.Text = &quot;openNETCF&quot;;
              this.label12.TextAlign = System.Drawing.ContentAlignment.TopCenter;
              // 
              // label11
              // 
              this.label11.Font = new System.Drawing.Font(&quot;Verdana&quot;, 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))));
              this.label11.Location = new System.Drawing.Point(16, 91);
              this.label11.Size = new System.Drawing.Size(40, 16);
              this.label11.Text = &quot;fmod&quot;;
              this.label11.TextAlign = System.Drawing.ContentAlignment.TopCenter;
              // 
              // label10
              // 
              this.label10.Font = new System.Drawing.Font(&quot;Tahoma&quot;, 8F, System.Drawing.FontStyle.Regular);
              this.label10.Location = new System.Drawing.Point(8, 32);
              this.label10.Size = new System.Drawing.Size(224, 56);
              this.label10.Text = &quot;Blah Blah Blah Blah&quot;;
              this.label10.TextAlign = System.Drawing.ContentAlignment.TopCenter;
              // 
              // label9
              // 
              this.label9.Font = new System.Drawing.Font(&quot;Verdana&quot;, 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))));
              this.label9.Location = new System.Drawing.Point(16, 16);
              this.label9.Size = new System.Drawing.Size(192, 16);
              this.label9.Text = &quot;Greetings&quot;;
              // 
              // label13
              // 
              this.label13.Font = new System.Drawing.Font(&quot;Verdana&quot;, 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))));
              this.label13.Location = new System.Drawing.Point(64, 91);
              this.label13.Size = new System.Drawing.Size(64, 16);
              this.label13.Text = &quot;BlahBlah&quot;;
              this.label13.TextAlign = System.Drawing.ContentAlignment.TopCenter;
              // 
              // tabPage1
              // 
              this.tabPage1.Controls.Add(this.textBox1);
              this.tabPage1.Location = new System.Drawing.Point(0, 0);
              this.tabPage1.Size = new System.Drawing.Size(232, 104);
              this.tabPage1.Text = &quot;Changelog&quot;;
              // 
              // textBox1
              // 
              this.textBox1.Location = new System.Drawing.Point(0, 0);
              this.textBox1.Multiline = true;
              this.textBox1.ReadOnly = true;
              this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
              this.textBox1.Size = new System.Drawing.Size(240, 120);
              this.textBox1.Text = resources.GetString(&quot;textBox1.Text&quot;);
              // 
              // label1
              // 
              this.label1.Font = new System.Drawing.Font(&quot;Verdana&quot;, 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))));
              this.label1.Location = new System.Drawing.Point(8, 232);
              this.label1.Size = new System.Drawing.Size(224, 16);
              this.label1.Text = &quot;POMOD - 2022&quot;;
              this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
              // 
              // label14
              // 
              this.label14.Font = new System.Drawing.Font(&quot;Verdana&quot;, 8.25F, System.Drawing.FontStyle.Italic);
              this.label14.Location = new System.Drawing.Point(8, 256);
              this.label14.Size = new System.Drawing.Size(224, 16);
              this.label14.Text = &quot;Websites are no longer active&quot;;
              this.label14.TextAlign = System.Drawing.ContentAlignment.TopCenter;
              this.label14.ParentChanged += new System.EventHandler(this.label14_ParentChanged);
              // 
              // About
              // 
              this.ClientSize = new System.Drawing.Size(240, 294);
              this.Controls.Add(this.label14);
              this.Controls.Add(this.label1);
              this.Controls.Add(this.tabControl1);
              this.Controls.Add(this.pictureBoxPOMOD);
              this.Icon = ((System.Drawing.Icon)(resources.GetObject(&quot;$this.Icon&quot;)));
              this.MinimizeBox = false;
              this.Text = &quot;r&quot;;
              this.Load += new System.EventHandler(this.About_Load);
  
          }
          #endregion
  
          private void About_Load(object sender, System.EventArgs e)
          {
              this.MinimizeBox = false;
          }
  
          private void label14_ParentChanged(object sender, EventArgs e)
          {
  
          }
  
          private void lbl_perftest_ParentChanged(object sender, EventArgs e)
          {
  
          }
  
          private void lbl_perftest_ParentChanged_1(object sender, EventArgs e)
          {
  
          }
      }
  }
  
  </code></pre>
  <p>Specifically this part</p>
  <pre><code>        private void SetLanguage(int i)
          {
              ResourceManager rm = null;
              switch (i)
              {
                  case 0:
                      rm = new ResourceManager(&quot;pomod.Languages.English&quot;, Assembly.GetExecutingAssembly());
                      break;
                  case 1:
                      rm = new ResourceManager(&quot;pomod.Languages.Catalan&quot;, Assembly.GetExecutingAssembly());
                      break;
                  case 2:
                      rm = new ResourceManager(&quot;pomod.Languages.Spanish&quot;, Assembly.GetExecutingAssembly());
                      break;
              }
              tabControl1.TabPages[0].Text = rm.GetString(&quot;tabversion&quot;);
              tabControl1.TabPages[1].Text = rm.GetString(&quot;tabcredits&quot;);
              tabControl1.TabPages[2].Text = rm.GetString(&quot;tabgreetings&quot;);
              tabControl1.TabPages[3].Text = rm.GetString(&quot;tabchangelog&quot;);
              lbl_perftest.Text = rm.GetString(&quot;lbl_perftest&quot;);
          }
          #endregion
  </code></pre>
  <p>Is supposed to change the text of the Label called <code>lbl_perftest</code> to a resx file in Languages, but when compiled is gives text of <code>lbl_perftest</code> and not the resx text of <code>REALTEXTFORENGLISH</code></p>
  <p>This is supposed to change the app-wide language to english to whatever selected language</p>
  <p>What should I do to correct this issue? I just want to be able to change the text from English to whatever language the user selects from the .resx file in the app. Like text replace on a resource!</p>