title: how to make text BOLD and Red
body: <p>How do I make the below exception return BOLD and text font RED? The wordings of "return "<strong><em>WMI Error</em></strong>";"</p>
  
  <p>This is used later in the code for returning WMI parameters in a textbox...as shown below:</p>
  
  <pre><code> private static string GetMOValue(ManagementObject mo, string name)
          {
              try
              {
                  object result = mo[name];
                  return result == null ? "" : result.ToString();
              }
              catch (Exception)
              {
                  return "***WMI Error***";
              }
          }
  
          private void cmbHdd_SelectedIndexChanged(object sender, EventArgs e)
          {
              //try
              //{
                  ManagementObjectSearcher mosDisks = new ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive WHERE Model = '" + cmbHdd.SelectedItem + "'");
                  foreach (ManagementObject moDisk in mosDisks.Get())
                  {
                      //try
                      //{
                      txtSystemName.Text = GetMOValue(moDisk, "systemname");
                      txtType.Text = GetMOValue(moDisk, "MediaType");
                      txtModel.Text = GetMOValue(moDisk, "Model");
                      txtFirmware.Text = GetMOValue(moDisk, "FirmwareRevision");
  .....
  </code></pre>