Вы находитесь на странице: 1из 1

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button1.Click
Dim beep As Char = TextBox1.Text
Dim spin As Char = TextBox2.Text

If beep = "Y" And spin = "Y" Then


Label3.Text = "Contact tech support."
ElseIf beep = "Y" And spin = "N" Then
Label3.Text = "Check drive contacts."
ElseIf beep = "N" And spin = "N" Then
Label3.Text = "Bring computer to repair center"
ElseIf beep = "N" And spin = "Y" Then
Label3.Text = "Check the speaker connections"
End If
End Sub
End Class

Вам также может понравиться