Home > Software engineering >  How to record the location of the Item first appeared in the listBox1
How to record the location of the Item first appeared in the listBox1

Time:10-15

C # how to record the location of the Item first appeared in the listBox1, convenient repeated can be added to the position of the first time

CodePudding user response:

X=1
For I=1 To List1. ListCount
If List1. The Items (I - 1)="XXX" Then x=I - 1
Next
If x=1 Then MsgBox "not found" the else MsgBox x
  • Related