Exercise 5

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Exercise 5

Public Class Form1


Private Sub btnWhatToDo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles btnWhatToDo.Click
Dim beep As String = txtComputerBeep.Text
Dim spin As String = txtHardDriveSpin.Text
If beep = "Y" And spin = "Y" Then
MessageBox.Show("Contact tech Support", "Help", MessageBoxButtons.OKCancel)
ElseIf beep = "Y" And spin = "N" Then
MessageBox.Show("Check Drive Contacts", "Help", MessageBoxButtons.OKCancel)
ElseIf beep = "N" And spin = "N" Then
MessageBox.Show("Bring computer to repair center.", "Help",
MessageBoxButtons.OKCancel)
ElseIf beep = "N" And spin = "Y" Then
MessageBox.Show("Check the speaker connections.", "Help",
MessageBoxButtons.OKCancel)
End If
End Sub
End Class

You might also like