Message 1 of 3
TaskDialog Checkbox messing up text formatting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, all
I have a TaskDialog, displaying some warnings in the model. The problems is that once I introduce a checkbox at the botttom, the text formatting appears messed up. Here is the window prior to introducing the checkbox:
And here's the same window displayed after the checkbox is enabled:
This is how the checkbox appears when there is less information, still messed up but somewhat readable:
Here's the code snippet:
TaskDialog errorReport = new TaskDialog("Warnings");
errorReport.MainInstruction = errors;
errorReport.ExtraCheckBoxText = "Експортване ма грешките в текстови файsл на десктопа";
errorReport.Show();
if (errorReport.WasExtraCheckBoxChecked())
{
string path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "warnings.txt");
File.WriteAllText(path, errors);
}
return Result.Failed;
I am using the checkbox for the export of a .txt file with all the warnings. I could easily use another approach, I was just curious if it's possible to use a checkbox and not mess up the formatting