選取項目:
VB2008:
If ListBox1.SelectedIndex = -1 Then
Exit Sub
End If
MsgBox (ListBox1.Items(ListBox1.SelectedIndex))
Exit Sub
End If
MsgBox (ListBox1.Items(ListBox1.SelectedIndex))
VB6:
If List1.ListIndex = -1 Then
Exit Sub
End If
MsgBox List1.List(List1.ListIndex)
Exit Sub
End If
MsgBox List1.List(List1.ListIndex)
勾取項目:
VB2008:
If CheckedListBox1.CheckedItems.Count = 0 Then
Exit Sub
End If
For i = 0 To CheckedListBox1.CheckedItems.Count - 1
MsgBox(CheckedListBox1.CheckedItems.Item(i))
Next
Exit Sub
End If
For i = 0 To CheckedListBox1.CheckedItems.Count - 1
MsgBox(CheckedListBox1.CheckedItems.Item(i))
Next
那請問大大...
回覆刪除如何取得CheckedListBox中任何一個項目是否被勾選或取消
不指定項目情況下....
VB.net
小弟我還是新手 :)