I need to create a gui application in vb 2010. The gui needs to be a English to Spanish word translater. I ma using a listbox for 4 english words and four spanish words. i have created the listbox with the add.items. but when I select the english word from the listbox it will not display the spanish word in the text box. here is my code: Dim GoodMorning As String = "Buenos dias" Dim ThankYou As String = "Gracias" Dim Goodbye As String = "Adios" Dim Money As String = "Dinero" 'Add Items to listbox lstbEnglishWord.Items.Add("Good Morning") lstbEnglishWord.Items.Add("Thank You") lstbEnglishWord.Items.Add("Goodbye") lstbEnglishWord.Items.Add("Money") Select Case lstbEnglishWord.SelectedIndex Case 0 GoodMorning = "Buenos dias" Case 1 ThankYou = "Gracias" Case 2 Goodbye = "Adios" Case 3 Money = "Dinero" End Select If GoodMorning = "Buenos dias" Then GoodMorning = "Buenos dias" If ThankYou = "Gracias" Then ThankYou = "Gracias" If Goodbye = "Adios" Then Goodbye = "Adios" If Money = "Dinero" Then Money = "Dinero" End If End If End If End If End Sub lstbEnglishWord.Text = txtbSpanishWord.ToString("SpanishWord") txtbSpanishWord.Clear()
Software/Hardware used:
ASKED:
January 29, 2011 10:39 PM
UPDATED:
January 31, 2011 2:19 PM