Nota
Pristup ovoj stranici zahteva autorizaciju. Možete pokušati da se prijavite ili promenite direktorijume.
Pristup ovoj stranici zahteva autorizaciju. Možete pokušati da promenite direktorijume.
Accessing specific items in a Windows Forms combo box, list box, or checked list box is an essential task. It enables you to programmatically determine what is in a list, at any given position.
To access a specific item
Query the
Itemscollection using the index of the specific item:Private Function GetItemText(i As Integer) As String ' Return the text of the item using the index: Return ComboBox1.Items(i).ToString End Functionprivate string GetItemText(int i) { // Return the text of the item using the index: return (comboBox1.Items[i].ToString()); }private: String^ GetItemText(int i) { // Return the text of the item using the index: return (comboBox1->Items->Item[i]->ToString()); }
See also
Saradnja sa nama na GitHub
Izvor za ovaj sadržaj može se naći na GitHub-u, gde takođe možete kreirati i pregledati probleme i zahteve za povlačenje. Za više informacija, pogledajte naš vodič za saradnike.
.NET Desktop feedback