1 year ago

#354882

test-img

CoeTheTruth

Having issues writing the code for this problem in Visual Basic

enter image description here

This is the question I'm having difficulty figuring out. I'm unable to get splash screens to show up on my previous two questions I was able to complete the coding and design, but this one is throwing me for a loop.

This is what I have so far

Public Sub New()
    InitializeComponent()

    label2.Visible = False

    label3.Visible = False
    label4.Visible = False
    comboBox1.Items.Add("Uber")
    comboBox1.Items.Add("Subway")
    comboBox1.Items.Add("Bus")
End Sub

Private Sub comboBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
    If comboBox1.SelectedIndex = 0 Then
        label2.Visible = True
        label3.Visible = True
        label4.Visible = True
    End If

    If comboBox1.SelectedIndex = 1 Then
        label2.Visible = True
        label3.Visible = True
        label4.Visible = False
    End If

    If comboBox1.SelectedIndex = 2 Then
        label2.Visible = True
        label3.Visible = True
        label4.Visible = False
    End If
End Sub

vb.net

splash-screen

0 Answers

Your Answer

Accepted video resources