title: C# message box - disappear automatically
body: <p>I have a windows application that will write some information to Track1 and Track2 of a card. Now what I would like to accomplish is that when the user clicks the button a messagebox appear saying "Waiting For Swipe" once user swipes the card for the messagebox to disappear.</p>
  
  <p>I tried to use a do while loop however it will not see my function that I am calling</p>
  
  <p>for example:</p>
  
  <pre><code>do{
  readcard();
  }while (messagebox.show());
  </code></pre>
  
  <p>this did not work at all. Any suggestions on how I could accomplish this.</p>
  
  <p>Thanks</p>