Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Create Dictionary In VB.NET [Source Codes]

I'm New Can't Post Links.
PM Me For Video Link.


Code
Public Class Form1 Private Sub ComboBox1_SelectedIndexChanged_1(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged If ComboBox1.SelectedItem = "Word 1" Then TextBox1.Text = "The Meaning 1" End If If ComboBox1.SelectedItem = "Word 2" Then TextBox1.Text = "The Meaning 2" End If If ComboBox1.SelectedItem = "Word 3" Then TextBox1.Text = "The Meaning 3" End If If ComboBox1.SelectedItem = "Word 4" Then TextBox1.Text = "The Meaning 4" End If If ComboBox1.SelectedItem = "Word 5" Then TextBox1.Text = "The Meaning 5" End If If ComboBox1.SelectedItem = "Word 6" Then TextBox1.Text = "The Meaning 6" End If If ComboBox1.SelectedItem = "Word 7" Then TextBox1.Text = "The Meaning 7" End If If ComboBox1.SelectedItem = "Word 8" Then TextBox1.Text = "The Meaning 8" End If If ComboBox1.SelectedItem = "Word 9" Then TextBox1.Text = "The Meaning 9" End If If ComboBox1.SelectedItem = "Word 10" Then TextBox1.Text = "The Meaning 10" End If End Sub End Class
With the code you've posted, you'll have a limited range of word (also not practical). Try to store words/definitions in a storage/database then retrieve and output the result.
[Image: signaturetwo.png]
(Aug 18, 2018 09:06 AM)Vyxn Wrote:  With the code you've posted, you'll have a limited range of word (also not practical). Try to store words/definitions in a storage/database then retrieve and output the result.

Why Limited Words.....
(Aug 18, 2018 08:38 PM)AnaX619 Wrote:  Why Limited Words.....

If else if else if else? Don't you get tired of it?
[Image: signaturetwo.png]
(Aug 18, 2018 08:43 PM)Vyxn Wrote:  If else if else if else? Don't you get tired of it?

So If You've Another Code Without Else If.
I'll Be Gr8 To Hear....
Read my first response, no code, just an idea.
https://hackforums.net/showthread.php?ti...id57488071
[Image: signaturetwo.png]
You remind me my old good days.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by iRuSTecHAug 27, 2018 05:00 AM 6 887 Aug 27, 2018 05:00 AM
Last Post: InterGalactic
[.NET] by flAmingw0rmJul 31, 2015 10:25 PM 897 27,422 Jul 31, 2015 10:25 PM
Last Post: Odus
[.NET] by rweed1Feb 5, 2015 04:27 PM 10 839 Feb 5, 2015 04:27 PM
Last Post: SIM-1456245