在运行时向“字典”添加单词

时间:2013-07-20 21:10:41

标签: vb.net visual-studio dictionary

我创建了一个这样的词典:

Private WordMDictionary As Dictionary(Of String, String())

Public Sub wordget()
    WordMDictionary = New Dictionary(Of String, String())
    WordMDictionary.Add("Money", {"Money- Psychologically value added binary code or paper", "Cash - same meaning as money"})
End Sub

如何在运行时使用文本框添加单词及其含义?

1 个答案:

答案 0 :(得分:0)

假设你有一个单词的TextBox和另一个TextBox(多行)的含义。

WordMDictionary(txtWord.Text) = txtMeanings.Lines

所以一行就是一个意思。