title: C# Multilanguage messagebox
body: <p>I would like my messagebox to show information according to language slected by user. I change all button and label text according to lanugage button click. But how can I make my messagebox to display different info based on this language button click? For example if I have another button and when I click it, proper messagebox is displayed, I would like this messagebox to be displayed in different languages for different user choice. I have my all my text in resource. Bellow is my code.</p>
  
  <pre><code>private void btnLngEnglish_Click(object sender, EventArgs e)
      {
          CultureInfo ci = new CultureInfo("en-US");
          Assembly a = Assembly.Load("read_display");
          ResourceManager rm = new ResourceManager("read_display.language.languageRes", a);
          button7.Text = rm.GetString("file", ci);
          button4.Text = rm.GetString("timecount", ci);
          button6.Text = rm.GetString("daterange", ci);
          button3.Text = rm.GetString("specdate", ci);
          button1.Text = rm.GetString("phrasesearch", ci);
          button5.Text = rm.GetString("higherval", ci);
          label3.Text = rm.GetString("langsel", ci);
          label5.Text = rm.GetString("rowcount", ci);
          label4.Text = rm.GetString("timeElapsed", ci);
          label1.Text = rm.GetString("filterdate", ci);
          label2.Text = rm.GetString("hide", ci);
      }
  
      private void btnLangPolish_Click(object sender, EventArgs e)
      {
          CultureInfo ci = new CultureInfo("pl-PL");
          Assembly a = Assembly.Load("read_display");
          ResourceManager rm = new ResourceManager("read_display.language.languageResPL", a);
          button7.Text = rm.GetString("file", ci);
          button4.Text = rm.GetString("timecount", ci);
          button6.Text = rm.GetString("daterange", ci);
          button3.Text = rm.GetString("specdate", ci);
          button1.Text = rm.GetString("phrasesearch", ci);
          button5.Text = rm.GetString("higherval", ci);
          label3.Text = rm.GetString("langsel", ci);
          label5.Text = rm.GetString("rowcount", ci);
          label4.Text = rm.GetString("timeElapsed", ci);
          label1.Text = rm.GetString("filterdate", ci);
          label2.Text = rm.GetString("hide", ci);
      }
  </code></pre>
  
  <p>EDIT:</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
      {
          string searchString = textBox8.Text;
          if (String.IsNullOrEmpty(textBox8.Text))
          {
              //Here I would like to diplay messages in two different language, based on previous language button click. Can I do it??
              MessageBox.Show("Enter value to filter");
          }
          else
          {
              bool found = false;
              foreach (DataGridViewRow row in dataGridView1.Rows)
              {
                  if (row.Cells[1].Value.ToString().Contains(searchString))
                  {
                      row.DefaultCellStyle.BackColor = System.Drawing.Color.MediumPurple;
                      row.Selected = true;
                      found = true;
                  }
                  if (row.Cells[2].Value.ToString().Contains(searchString))
                  {
                      row.DefaultCellStyle.BackColor = System.Drawing.Color.MediumPurple;
                      found = true;
                  }
              }
              if (!found)
              {
                  //Here I would like to do same thing
                  MessageBox.Show("Value was not found");
              }
          }
      }
  </code></pre>