2 Begin VB.Form TerminateMSO
\r
3 BorderStyle = 3 'Fixed Dialog
\r
4 Caption = "Dialog Caption"
\r
9 ControlBox = 0 'False
\r
11 MaxButton = 0 'False
\r
12 MinButton = 0 'False
\r
15 ShowInTaskbar = 0 'False
\r
16 Begin VB.CommandButton NoButton
\r
19 CausesValidation= 0 'False
\r
27 Begin VB.CommandButton YesButton
\r
29 CausesValidation= 0 'False
\r
36 Begin VB.Label Info
\r
45 Attribute VB_Name = "TerminateMSO"
\r
46 Attribute VB_GlobalNameSpace = False
\r
47 Attribute VB_Creatable = False
\r
48 Attribute VB_PredeclaredId = True
\r
49 Attribute VB_Exposed = False
\r
52 Const CR_STR = "<CR>"
\r
54 Private Sub Form_Activate()
\r
55 NoButton.Default = True
\r
58 Private Sub Form_Load()
\r
60 TerminateMSO.Top = frmWizard.Top + 3000
\r
61 TerminateMSO.Left = frmWizard.Left + 1000
\r
63 TerminateMSO.Caption = GetResString(TERMINATE_CAPTION)
\r
64 Info.Caption = ReplaceTopicTokens(GetResString(TERMINATE_INFO), CR_STR, Chr(13))
\r
65 YesButton.Caption = GetResString(TERMINATE_YES)
\r
66 NoButton.Caption = GetResString(TERMINATE_NO)
\r
67 NoButton.Default = True
\r
70 Private Sub YesButton_Click()
\r
71 Dim fso As New FileSystemObject
\r
72 TerminateOfficeApps fso, " --kill"
\r
77 Private Sub NoButton_Click()
\r