8 references to ShutdownMode
Microsoft.VisualBasic.Forms (8)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (7)
107
Private _shutdownStyle As
ShutdownMode
246
Protected Friend Property ShutdownStyle() As
ShutdownMode
250
Set(value As
ShutdownMode
)
1012
Friend Shared Sub ValidateShutdownModeEnumValue(value As
ShutdownMode
, paramName As String)
1013
If value <
ShutdownMode
.AfterMainFormCloses OrElse value >
ShutdownMode
.AfterAllFormsClose Then
1014
Throw New InvalidEnumArgumentException(paramName, value, GetType(
ShutdownMode
))
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.WinFormsAppContext.vb (1)
40
If _app.ShutdownStyle =
ShutdownMode
.AfterMainFormCloses Then