Hallo allerseits
ich bin dabei ein Programm für Windows 7 zu schreiben, unter anderem mit TaskDialog, also quasi die MessageBox für Windows 7. Mir ist jedoch aufgefallen, dass bei meiner Anwendung die Icons (Also Error, Information, Warning, etc.) nicht angezeigt werden.
[highlight=c#]
TaskDialog td = new TaskDialog();
TaskDialogStandardButtons button = TaskDialogStandardButtons.None;
button |= TaskDialogStandardButtons.Yes;
button |= TaskDialogStandardButtons.No;
string title = "Hinweis";
string instruction = "Aufruf der Homepage";
string content = "Es wird nun die Homepage des Programms und des Entwicklers aufgerufen.";
td.Icon = td.FooterIcon = TaskDialogStandardIcon.Information;
td.StandardButtons = button;
td.InstructionText = instruction;
td.Caption = title;
td.Text = content;
td.OwnerWindowHandle = this.Handle;
TaskDialogResult res = td.Show();
if (res == TaskDialogResult.Yes)
{
/**
* Ruft die Homepage im Browser auf
*/
Process.Start("http://www.kraemer-software.eu/");
}
[/highlight]
Kann mir jemand sagen ob da ein Fehler bei mir, bzw. im Code liegt ?
Ich habe übrigens den Code mehrmals mit den Beispielen aus dem Windows 7 API Code Pack v1.1 und aus dem Internet verglichen
ich bin dabei ein Programm für Windows 7 zu schreiben, unter anderem mit TaskDialog, also quasi die MessageBox für Windows 7. Mir ist jedoch aufgefallen, dass bei meiner Anwendung die Icons (Also Error, Information, Warning, etc.) nicht angezeigt werden.
[highlight=c#]
TaskDialog td = new TaskDialog();
TaskDialogStandardButtons button = TaskDialogStandardButtons.None;
button |= TaskDialogStandardButtons.Yes;
button |= TaskDialogStandardButtons.No;
string title = "Hinweis";
string instruction = "Aufruf der Homepage";
string content = "Es wird nun die Homepage des Programms und des Entwicklers aufgerufen.";
td.Icon = td.FooterIcon = TaskDialogStandardIcon.Information;
td.StandardButtons = button;
td.InstructionText = instruction;
td.Caption = title;
td.Text = content;
td.OwnerWindowHandle = this.Handle;
TaskDialogResult res = td.Show();
if (res == TaskDialogResult.Yes)
{
/**
* Ruft die Homepage im Browser auf
*/
Process.Start("http://www.kraemer-software.eu/");
}
[/highlight]
Kann mir jemand sagen ob da ein Fehler bei mir, bzw. im Code liegt ?
Ich habe übrigens den Code mehrmals mit den Beispielen aus dem Windows 7 API Code Pack v1.1 und aus dem Internet verglichen