當我運行了一個程序,把它給我的值(是的,我確實有在下拉選擇列表中的項目)在組合框中我得到的是這樣的,爲什麼組合框會返回錯誤的值?
System.Windows .Forms.ComboBox + ObjectCollection
這是代碼我使用
Dim name As String
name = cmbworld.Text
MsgBox(name)
任何想法?
P.S.我用來插入值的代碼是
cmbworld.Items.Clear()
If File.Exists(root + "\setting\world.txt") Then
For Each line As String In File.ReadLines(root + "\setting\world.txt")
If line.Length <> 0 Then
cmbworld.Items.Add(line)
End If
Next line
Else
你可以發表代碼,你把值放到組合框? – Tridus 2011-06-13 21:23:38
@Tridus現在是 – Kuzon 2011-06-13 21:27:09