listbox = arraylist ?

Discussion in 'Questions (Windows Mobile)' started by sloopa, May 7, 2007.

  1. sloopa

    sloopa Member Licensed User

    I try to fill a listbox with filesearch.

    My solution isn't pretty (First fill arraylist than listbox)

    Code:

    filesearch(arraylist3, textbox1.Text, "*.mp3")
    for i=0 to arraylist3.Count-1
    listbox1.Add(arraylist3.Item(i))
    next i



    Is there a better one?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    That is the best solution.
    I think it is pretty nice ;)
     
Loading...