DTE2.Quit Method

Closes the Visual Studio environment.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Quit shuts down the integrated development environment (IDE), but not the operating system.

Sub readyToQuit()
    msg = MsgBox("Are you ready to quit Visual Studio?", _
    MsgBoxStyle.YesNo)
    If msg = MsgBoxResult.Yes Then
        Quit()
    Else
        MsgBox("Continuing...")
    End If
End Sub

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft