+ 1
todo list app with timer
id like to use listview instead of just textbox while using timer. can i make it possible for my code to compare the items in listview to current time?
1 Respuesta
+ 2
Yes. You can.
The listview has a property called Items.
You can easily add items to the listview
ListView1.Items.Add("Mahesh Chand");
ListView1.Items.Add("Mike Gold");
ListView1.Items.Add("Praveen Kumar");
ListView1.Items.Add("Raj Beniwal");
or even use a already made collection as itemsource
ArrayList authors = new ArrayList();
authors.Add("Mahesh Chand");
authors.Add("Mike Gold");
authors.Add("Raj Kumar");
authors.Add("Praveen Kumar");
ListView1.Items.Clear();
ListView1.Items = authors;
You can search for a string using the FindString method
ListView1.FindString(textBox1.Text);
https://www.c-sharpcorner.com/UploadFile/mahesh/working-with-listview-in-C-Sharp/