0
想確認一些東西,因爲我使用的是Windows 10,而TaskDialog似乎沒有顯示任何可用的TaskDialogStandardIcon。有人可以確認是否在Windows 7相同的行爲?如果是的話如何解決這個問題在WIndows 10上?TaskDialog - 窗口上沒有圖標10
示例代碼:
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
Dim dialog As New TaskDialog()
dialog.Caption = "Application Error"
dialog.InstructionText = "CRASH AND BURN!"
dialog.Text = "The application has performed an illegal action. Thisaction has been logged and reported."
dialog.Icon = TaskDialogStandardIcon.Error
dialog.Cancelable = False
dialog.DetailsExpanded = False
dialog.DetailsCollapsedLabel = "Show Expanded Text"
dialog.DetailsExpandedLabel = "Hide Expanded Text"
dialog.DetailsExpandedText = "### Start of Expanded Text ###" & Environment.NewLine & "" + Environment.NewLine + "### End of Expanded Text ###"
Dim minValue As Integer = 0
Dim maxValue As Integer = 100
Dim currentValue As Integer = 20
dialog.ProgressBar = New TaskDialogProgressBar(minValue, maxValue, currentValue)
dialog.Show()
End Sub
,我發現這個話題:Windows API Code Pack TaskDialog missing icon
你知不知道,這是否可以解決我的問題,以及如何做到這一點在vb.net?