CCM
CCM - Tech forum
Search engine
Search
Computing
Mobile
Apps & Sites
Image & Sound
Home
Security
Download
Forum
Forum
View original (French)
Number of items in a combo box
bootyshak
-
bootyshak -
14 Aug 2009 at 14:14
Hello,
I'm looking to get the number of items in a combobox so that I can go through all the items it contains. Is there a solution?
Thank you for your responses,
Have a nice day.
Show more
Related links:
to remove leading zeros from a number
Absolute value of a number
Put a variable in a textbox/combobox
sum of the bold numbers
Retrieve the line of a value in a combobox.
Dropdown list for ComboBox
5 answers
Answer 1 / 5
zoubiock
Posted messages
57
Status
Member
10
Which programming language?
Answer 2 / 5
bootyshak
Oh sorry in Visual Basic ;-)
Thank you
Answer 3 / 5
zoubiock
Posted messages
57
Status
Member
10
Solution here then:
https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2008/fte6kbt2(v=vs.90)?redirectedfrom=MSDN
ComboBox1.Items.Count()
Answer 4 / 5
Polux31
Posted messages
7219
Status
Member
1 204
Hello,
Dim i As Long For i = 0 To Combo1.ListCount - 1 MsgBox Combo1.List(i) Next i
;o)
--
“What is well conceived can be clearly expressed, And the words to say it come easily.”
Nicolas Boileau
Answer 5 / 5
bootyshak
A huge thank you for your answers, have a nice day.
Latest Discussions
Linux to replace w10
at 06:35
System restore from bootable windows 11 usb drive
at 03:58
Turn off
at 02:17
Startup issue
at 02:11
Return material found at a deceased cousin's house
at 01:59
File with some lines merged and others not
at 01:42
Site inaccessible
at 00:33
My printer won't connect to my pc anymore
at 00:09
Asus vivobook pc won’t boot anymore, need help
at 00:06
Windows 11 microphone issue
on 27 Jun
Other languages
🇪🇸
Español
🇫🇷
Français