MsgBox and vbYes : MsgBox « GUI « VB.Net Tutorial

MsgBox and vbYes
Imports System.Windows.Forms

public class MsgBoxDemo
   public Shared Sub Main
        Dim exita As String
        exita = MsgBox("Exit?", Microsoft.VisualBasic.MsgBoxStyle.Exclamation + Microsoft.VisualBasic.MsgBoxStyle.YesNo + Microsoft.VisualBasic.MsgBoxStyle.MsgBoxHelp, "Title")
        If exita = vbYes Then
        End If
        Console.WriteLine( Microsoft.VisualBasic.MsgBoxStyle.MsgBoxHelp)

   End Sub
End class

14.59.1.MsgBox with only message
14.59.2.MsgBox with title and Abort Retry Ignore buttons
14.59.3.MsgBox and vbYesMsgBox and vbYes
14.59.4.Set MsgBox Button combinationSet MsgBox Button combination
14.59.5.Return value from MsgBoxReturn value from MsgBox