* Application.cs: fix compilation errors when debug is enabled.
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / Help.cs
index 5b4a31329bd223b8dfafc106e5ed4b531e479176..74565dcf2169b10450f8cf98985b560779fadc0b 100644 (file)
@@ -47,7 +47,10 @@ namespace System.Windows.Forms {
 
                [MonoTODO("Create glue code to tie into libCHM")]
                public static void ShowHelp(Control parent, string url, HelpNavigator command, object param) {
-                       MessageBox.Show(parent, (string)Locale.GetText("Help (" + command + "(" + param.ToString() + ")) not yet implemented"), (string)Locale.GetText("Popup Help"), MessageBoxButtons.OK, MessageBoxIcon.Stop);
+                       MessageBox.Show(parent, (string)Locale.GetText("Help (" + command +
+                                       (param != null ? "(" + param + ")" : String.Empty) +
+                                       ") not yet implemented"), (string)Locale.GetText("Popup Help"),
+                                       MessageBoxButtons.OK, MessageBoxIcon.Stop);
                }
 
                public static void ShowHelp(Control parent, string url, string keyword) {