title: C# Forms | Code for Metro Framework Message Box Button
body: <p>How can I put a code that will be executed when I click a Button in MetroFramework Message Box. I am still learning how to use hte framework. I found it difficult because unlike the regular Message Box, you can code through the use of Dialog Result. But I don't know if it has a counterpart in the Metro Framework. Thanks in advance! :) </p>
  
  <p>Below is my code. I don't know how can I make an If Statement from the YesNo button.</p>
  
  <pre><code> MetroFramework.MetroMessageBox.Show(this, "\n\nContinue Logging Out?", "EMPLOYEE MODULE | LOG OUT", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  </code></pre>