title: How to copy text from a messageBox in Visual Basic / VB.NET
body: <p>How can I copy text from a messageBox in Visual Basic?</p>
  
  <p>I know I could just do Ctr+C and it would copy the text, the problem with this technique is that it copies the title and the button text as well and in my case I only want to copy the numeric value .0006734, any idea how can I accomplish this? </p>
  
  <p>FYI - It needs to be done programmatically due to some UI limitations.</p>
  
  <p>Here is the code I'm currently using for the message box.</p>
  
  <pre><code>MessageBox.Show("Yields :  " + CStr(totalYields), "Yields X")    
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/buaxw.png" alt="enter image description here"></p>