static string FormatForLabel (string name) { // Replace underscores ("_") with double-underscores ("__") // so Note menuitems are not created with mnemonics. return name.Replace ("_", "__"); }