title: Stringify key-value pairs in dictionary
body: <p>I have made a dictionary which contains two values: a <code>DateTime</code> and a <code>string</code>.</p>
  <p>Now I want to print everything from the dictionary to a Textbox.
  Does anybody know how to do this?</p>
  <p>I have used this code to print the dictionary to the console:</p>
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      Dictionary&lt;DateTime, string&gt; dictionary = new Dictionary&lt;DateTime, string&gt;();
      dictionary.Add(monthCalendar1.SelectionStart, textBox1.Text);
  
      foreach (KeyValuePair&lt;DateTime, string&gt; kvp in dictionary)
      {
          //textBox3.Text += (&quot;Key = {0}, Value = {1}&quot;, kvp.Key, kvp.Value);
          Console.WriteLine(&quot;Key = {0}, Value = {1}&quot;, kvp.Key, kvp.Value);
      }
  }
  </code></pre>