如果我想将 MessageBoxButtons.Ok 或 MessageBoxButtons.OkCancel 发送到 MessageBox 并且我想将正确的值存储在变量中,我应该将它调暗到什么类型?
Dim MyVariable As ______
If <condition> Then
MyVariable = MessageBoxButtons.Ok
Else
MyVariable = MessageBoxButtons.OkCancel
End If
MessageBox.Show("Message", "Title", MyVariable)