我在我的应用程序中使用了messagebox。它在我的开发中工作得很好但是当我部署它进行测试时,它不会弹出一些用户。这是我的代码:
StringBuilder sbInstructions = new StringBuilder();
sbInstructions.Append("Open a browser");
sbInstructions.Append("Click Submit\n");
sbInstructions.Append(string.Format("Save the file as {0}, to the following path {0} \n", CsvFilePath, Path));
sbInstructions.Append("Close the browser\n\n");
sbInstructions.Append(string.Format( "Open the CSV file in Excel and save as an XLS with the filename {0} where YYYYMM is the month/year \n", FilePath2));
sbInstructions.Append("Close Excel\n\n");
sbInstructions.Append("Click OK when ready to proceed\n\n");
sbInstructions.Append(string.Format("NOTE: These instructions are saved at {0}DL_Instructions.txt to allow for copy/paste\n\n", Path));
File.WriteAllText(Path + "DL_Instructions.txt", sbInstructions.ToString());
MessageBox.Show(sbInstructions.ToString(), "Instructions", MessageBoxButtons.OK);