I am having problems searching through my Arraylist
. The array list stores various information about a number of teams such as the image path to their logo and the team name etc. It is being filled from a separate datafile using a StreamReader
I would like the user to input something in a Textbox
from a windows form such as the team name and then consequently the program will then search my arraylist for said string and open another form where the information of the searched team will be loaded up on screen using the Form.Load
procedure
To put it simply.
private void btn_Search_Click(object sender, EventArgs e)
{
//what code do I write here?
}
I understand that I might be a little to deep here for my current knowledge of coding so help would be appreciated.
EDIT: unfortunately it must be in an arraylist, sorry for the inconvenience.