find strings in listbox
#1

hello,

 

i am trying to find indexes of items from a string.

 

i introduce a string in a textbox and click on a search button which has this function:

listBox1.FindString(textBox1.Text)

but with this, i only get first index.

 

how could i do to get all indexes?

 

i have tried

int[] idxs = listBox1.FindString(textBox1.Text)

but idxs is array type and listBox1.FindString(textBox1.Text) is int type, so i get an error.

 

could anyone help me please?

 

thanks in advance.



Messages In This Thread
[No subject] - by soryjero - 08-01-2013, 01:04 PM
[No subject] - by ReturnKratos - 08-01-2013, 01:19 PM
[No subject] - by soryjero - 08-01-2013, 02:23 PM
[No subject] - by ReturnKratos - 08-01-2013, 03:26 PM
[No subject] - by Wizatek - 08-01-2013, 04:06 PM
[No subject] - by someone - 08-01-2013, 04:46 PM
[No subject] - by soryjero - 08-01-2013, 11:22 PM
[No subject] - by soryjero - 08-02-2013, 08:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)