我不知道要搜索什么关键字。
这是在我的应用程序的一个模块上。
Public Sub msgYNC(ByVal result As DialogResult)
result = MessageBox.Show("Are you sure you want to save and continue?", "RM Farms Confirmation", _
MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question)
End Sub
现在我想在表单上使用它。所以当我点击Confirm:
Dim result As DialogResult
msgYNC(result)
If result = Windows.Forms.DialogResult.Yes Then
'yes
ElseIf result = Windows.Forms.DialogResult.No Then
'n
ElseIf result = Windows.Forms.DialogResult.Cancel Then
'ca
End If
但它没有给我任何回报..我没有得到回应。我不知道如何编码,你能找出问题所在吗?