-
Hi guys,
this is my cod:
Where is the problem with my cod? |
Beta Was this translation helpful? Give feedback.
Answered by
miloush
Apr 4, 2023
Replies: 1 comment 1 reply
-
You are iterating over the elements of For Each lbi As String In ListBox1.Items
list.Add(lbi);
Next lbi |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
VahidEra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are iterating over the elements of
ListBox1.Items
and expect them to beListBoxItem
s but the errors tells you that is not the case, there are just strings in theItems
property in this case. So you should be able to do