'The default setting is checked.
Private Sub MissionBriefingToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles MissionBriefingToolStripMenuItem.Click
Dim mymenu As New ToolStripMenuItem
Try
If mymenu.CheckState = CheckState.Checked = True Then
MsgBox("You have turned ON the Mission Briefing. _
If you wish to turn it off, _
remove the check from the 'View Mission Briefing' box.", _
MsgBoxStyle.Information, "Mission Briefing")
Else
'mymenu.CheckState = CheckState.Checked = false Then
MsgBox("You have turned OFF the Mission Briefing. _
To turn it back on, place a check mark in the 'View Mission _
Briefing' box.", MsgBoxStyle.Information, "Mission Briefing")
End If
Catch ex As Exception
If Err.Number <> 0 Then
errLogger(Err.Number, Err.Description, Err.Source)
End If
Exit Sub
Finally
End Try
End Sub
Private Sub MissionBriefingToolStripMenuItem_CheckStateChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles _
MissionBriefingToolStripMenuItem.CheckStateChanged
Dim mymenu As New ToolStripMenuItem
Try
If mymenu.CheckState = CheckState.Checked Then
MsgBox("You have turned ON the Mission Briefing. _
If you wish to turn it off, remove the check from the _
'View Mission Briefing' box.", MsgBoxStyle.Information, "Mission Briefing")
ElseIf mymenu.CheckState = CheckState.Unchecked Then
MsgBox("You have turned OFF the Mission Briefing. _
To turn it back on, place a check mark in the 'View Mission _
Briefing' box.", MsgBoxStyle.Information, "Mission Briefing")
End If
Catch ex As Exception
If Err.Number <> 0 Then
errLogger(Err.Number, Err.Description, Err.Source)
End If
Exit Sub
Finally
End Try
End Sub
Private Sub PlayMissionBriefing()
Dim MissionBriefingToolStripMenuItem As New ToolStripMenuItem
Try
If MissionBriefingToolStripMenuItem.CheckState = CheckState.Checked Then
LaunchtheMission("mission_briefing", "mission_briefing.exe", "XXXXXXX")
End If
Catch ex As Exception
If Err.Number <> 0 Then
errLogger(Err.Number, Err.Description, Err.Source)
End If
Exit Sub
Finally
End Try
End Sub