![]() |
|
[.NET] Create Dictionary In VB.NET [Source Codes] - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Create Dictionary In VB.NET [Source Codes] (/showthread.php?tid=5875294) |
Create Dictionary In VB.NET [Source Codes] - AnaX619 - Aug 18, 2018 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 ClassRE: Create Dictionary In VB.NET [Source Codes] - Vyxn - Aug 18, 2018 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. RE: Create Dictionary In VB.NET [Source Codes] - AnaX619 - Aug 18, 2018 (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..... RE: Create Dictionary In VB.NET [Source Codes] - Vyxn - Aug 18, 2018 (Aug 18, 2018 08:38 PM)AnaX619 Wrote: Why Limited Words..... If else if else if else? Don't you get tired of it? RE: Create Dictionary In VB.NET [Source Codes] - AnaX619 - Aug 19, 2018 (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.... RE: Create Dictionary In VB.NET [Source Codes] - Vyxn - Aug 20, 2018 Read my first response, no code, just an idea. https://hackforums.net/showthread.php?tid=5875294&pid=57488071#pid57488071 RE: Create Dictionary In VB.NET [Source Codes] - InterGalactic - Aug 26, 2018 You remind me my old good days. |