> Visual studio 2012 Msgbox 'no' not functioning?

Visual studio 2012 Msgbox 'no' not functioning?

Posted at: 2014-12-18 
I'm using Visual Basic 2012, and cant get a msgbox to end if 'no' is selected, here is the bit of code im using which currently works to end the program but not close the message box when no is selected

MsgBox("Are you sure you want to Quit?", vbYesNo, ) If vbYes Then End

I want if vbYes then.....

to close the msgbox and continue running the program