Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

MessageBox - Bold Certain Text

$
0
0

Is there an easy way to accomplish the following:

For the code below, I want everything on the right (ball.LogoName, ball.BallColorDescription, etc) to be bold, so that when it shows in the messagebox, they stand out a little. 

duplicateMessage = "Duplicate Logos Listed Below: ";
foreach (GolfBall ball in golfBallDuplicates)
{
    duplicateMessage += "\n\n\tLogo Name: " + ball.LogoName;
    duplicateMessage += "\n\tColor: " + ball.BallColorDescription;
    duplicateMessage += "\n\tMake: " + ball.BallMakeDescription;
    duplicateMessage += "\n\tCondition: " + ball.BallConditionDescription;
    duplicateMessage += "\n\tHow Obtained: " + ball.HowObtainedDescription;
}
duplicateMessage += "\n\nAdd Duplicate?";
DialogResult dr = MessageBox.Show(duplicateMessage, "Duplicate Golf Ball", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

I saw this post:  http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/895917e7-8536-4ad1-a804-b5cf01b08d24 which doesn't make me think it possible, but that was from 2006 and perhaps in the last 7 years, this capability has been added as I am using VS 2012 at this time.                     

Thanks


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>