Question
Public Class Form1 Private Sub 1stChoice_SelectedIndexChanged (sender As Object, e As EventArgs) Handles 1stChoice.SelectedIndexChanged Select Case lstChoice.SelectedIndex Case 0 Label2.Text = Good Morning! Case 1
Public Class Form1
Private Sub 1stChoice_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 1stChoice.SelectedIndexChanged
Select Case lstChoice.SelectedIndex
Case 0
Label2.Text = "Good Morning!"
Case 1
Label2.Text = "Buongiorno!"
Case 2
Label2.Text = "Buenos Dias!"
Case 3
Label2.Text = "Guten Morgen!"
Case 4
Me.Close()
End Select
End Sub
Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
Select Case TextBox1.Text
Case 1
Label1.Text = "Good Morning!"
Case 2
Label1.Text = "Buongiorno!"
Case 3
Label1.Text = "Buenos Dias!"
Case 4
Label1.Text = "Guten Morgen!"
Case 5
Me.Close()
End Select
End Sub
Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As KeyPressEventArgs) Handles TextBox1.KeyPress
TextBox1.Clear()
End Sub
End Class
Can anyone correct the mistake "identifier expected" (line 3 column 17) "1stChoice_SelectedIndexChanged".......
Please Select a language below and I wilTsay Good Morning! English 1. English Italian 2. Italian 3. Spanish Spanish German 4. German End This Program 5. End This Program Enter your selection. or List 1 Error 0 Warnings 0 Messages Search Error List A Description File Line Column Project Identifier expected Form1.vb 17 Menu DrivenStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started