I am creating a work dialog in vb.net and the icon is not coming. (Everything else works) I am using Microsoft.WindowsAPICodePack.Dialogs is under my code: Low commandLink_Send = New TaskDialogCommandLink ("btnShowAlternatives", "View Alternative Times", " Select an available time ") slow commandLink_Ignore = new TaskDialogCommandLink (" buttonIgnore "," go back "" booking form ") ** td.Icon = TaskDialogStandardIcon.Shield ** td.Caption =" application error "td.InstructionText = "Booking Conflict" has been found in a conflict in the application "td.Text =" one of the selected resources "td.Cancelable = False td.Controls.Add (command Link_Send) td.Controls.Add (commandLink_Ignore) AddHandler command Link_Send.Click, AddressOff eventHandlers.commandLink_send_click AddHandler command link_Ignore.Click, AddressOf eventHandlers.commandLink_ignore_click I'm doing something wrong
Cheers
At the moment, there are only 1 solution for this. You have to set it with the opened event call. Something like this:
AddHandler yourTTD.opened, AddressOf yourTTD_Opened and add something like this:
private Shared sub yourTTD_Opened (ByVal as the object, as byVal e System.EventArgs) yourTD.icon = TaskDialogStandardIcon.Shield 'and you could also wish you' yourTD.FooterIcon = TaskDialogStandardIcon.whichevericonyouwant End Sub cheers
No comments:
Post a Comment