Hello..I'm almost done with this however. The selectedindex is not recognized and ("c0") is apparently should not be infinity?
Please help I been working on this for a while
Public Class Form1
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
Dim strcountries() As String = {"United States", "France"} For intsubsript As Integer = 0 To 1 LstCountries.It ems.Add(strcoun tries(intsubsri pt)) Next intsubsript
End Sub
Private Sub LstCountries_Se lectedIndexChan ged(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles LstCountries.Se lectedIndexChan ged
Dim strcity() As String = {"Washington ", "Paris"}
Dim strIndex As String = LstCountries.Se lectedIndex txtcity.Text = strcity(strInde x).ToString("co ")
End Sub End Class
Please help I been working on this for a while
Public Class Form1
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
Dim strcountries() As String = {"United States", "France"} For intsubsript As Integer = 0 To 1 LstCountries.It ems.Add(strcoun tries(intsubsri pt)) Next intsubsript
End Sub
Private Sub LstCountries_Se lectedIndexChan ged(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles LstCountries.Se lectedIndexChan ged
Dim strcity() As String = {"Washington ", "Paris"}
Dim strIndex As String = LstCountries.Se lectedIndex txtcity.Text = strcity(strInde x).ToString("co ")
End Sub End Class
Comment