The icons in my TaskDialog
are missing:
And in the taskbar:
I'd add this as a comment but I don't have enough rep. The marked answer worked for me once I removed this line of code:
taskDialog.FooterIcon = taskDialog.FooterIcon;
It was causing an unhandled exception.
I've found a workaround to this. Apparently it is a bug in the API itself.
taskDialog.Opened += new EventHandler(taskDialog_Opened);
...
public void taskDialog_Opened(object sender, EventArgs e)
{
TaskDialog taskDialog = sender as TaskDialog;
taskDialog.Icon = taskDialog.Icon;
taskDialog.FooterIcon = taskDialog.FooterIcon;
taskDialog.InstructionText = taskDialog.InstructionText;
}