我正在尝试创建一个MsgBox()
同时具有MsgBoxStyle.Critical
样式和MsgBoxStyle.RetryCancel
按钮样式的样式。到目前为止,我尝试过的是:
Private Sub DoSomething()
Dim Answer as MsgBoxResult
Answer = MsgBox("Error", MsgBoxStyle.RetryCancel & MsgBoxStyle.Critical, _
"Some sort of error.")
If Answer = MsgBoxResult.Retry Then
'REM: Try code again
Elseif Answer = MsgBoxResult.Cancel Then
Exit Sub
End If
End Sub
这是按钮当前的样子:
消息框上没有Critical
图标。
我怎样才能做到这一点?