Display answer for a listbox to a textbox in Visual Basic 2010

5 pts.
Tags:
GUI
GUI developers
TextBox
Visual Basic
Visual Studio 2010
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()
ASKED: January 29, 2011  10:39 PM
UPDATED: January 31, 2011  2:19 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following