An improvement to the solution by Mika:
MessageBox.Show(
string.Format("Your score is: {0}", variable),
string.Format(" {0}", Application.ProductName),
MessageBoxButtons.OK, MessageBoxIcon.Information);
The use of
Application.ProductName
is only possible for
System.Windows.Forms
.
(Please always, always tag your UI library. Is it WPF or Forms?!)
For WPF, you can ether use some constant string instead (better be from resource) or create the same property using application attributes you usually write in "AssemblyInfo.cs".
—SA