Dialouge Box in Windows form with yes/No/Cancel Button

  • Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click


    Dim dr As New DialogResult
    dr = MessageBox.Show("Aye You Want to Procedd !!!!!!!!!!", "Some Title", MessageBoxButtons.YesNoCancel)
    If dr = Windows.Forms.DialogResult.Yes Then


    MessageBox.Show("You Press OK")
    ElseIf dr = Windows.Forms.DialogResult.No Then


    MessageBox.Show("You Press No")
    ElseIf dr = Windows.Forms.DialogResult.Cancel Then


    MessageBox.Show("You Press Cancel")
    End If
    End Sub



Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

Optimum Creative