MessageBox with YesNoCancel - No & Cancel triggers same event

前端 未结 9 1132
误落风尘
误落风尘 2020-12-04 21:23

I have a message box with the YesNoCancel buttons...

  • Pressing Yes will do some action and close the application - works fine
9条回答
  •  北荒
    北荒 (楼主)
    2020-12-04 22:03

    Try this

    MsgBox("Are you sure want to Exit", MsgBoxStyle.YesNo, "")
                    If True Then
                        End
                    End If
    

提交回复
热议问题