title: C# Message Box, variable usage
body: <p>I have searched but I dont know if I am using the correct verbiage to search for. I am writing a program in C# for my class but I am having trouble with the message box. </p>
  
  <p>I am trying to have the message box show a message and read a variable at the same time. I have no problem doing this in the console applications but I cannot figure it out for the Windows side. </p>
  
  <p>So far I have:</p>
  
  <pre><code>MessageBox.Show("You are right, it only took you {0} guesses!!!", "Results", MessageBoxButtons.OK);
  </code></pre>
  
  <p>Which works fine. Howerver I am trying to have the {0} be the result of the variable numGuesses. I'm sure this is simple and I am just overlooking it in the book or something, or I have the syntax incorrect someplace.</p>