SQL
now I have a listbox I need to add in it name of day and time and the program read each item in listbox auto and if the first item = my pc day and time show message and so on... But I got dat error when the program reach the last item give me that error And when I click on start button it doesnot wait until the first item = my pc day and time it go on the each item until reach the last give me that error note: The User WIll add items from 2 textbox then click on button the item will appear in listbox so i need the program read each item in listbox and if the day and time = pc day ant time show messageError photo :
in button add items to listbox code:
Code
Listbox5.items.add(textbox1.text + textbox2.text)Code
Listbox5.selectedindex=0Code
in Button1 start timer code:Code
timer1.enabled=true;Code
in Timer1 code:Code
if (listbox5.text= datetime.now.tostring("ddd") +datetime.now.tolongtime()) Messagebox.show("done") Listbox.selectedindex +=1Code

ali tuncerRank #1,499 · 1.1K reputationPosted Apr 30, 2016, 8:16 PM EDT
{
spwam_Click(sender,e)
listBox5.SelectedIndex += 1;
}