Why does my loop in the timer control stops suddenly VB.net -


now when have code in 1 project code (note, got listbox full of items around 29 items!), function works , loops through every single item , gives out messagebox.

when enter code bigger project meticulously copy pasted code, loop in timer stops after 3 times every time. when enter in timer1.

if count < "29" 

still stops after 3 times every time. doing wrong, sources pretty same?!

code:

public class form1      dim numberofitems integer     dim count string       private sub button2_click(sender object, e eventargs) handles button2.click        if timer1.enabled = false             timer1.enabled = true             button2.text = "stop timer"             numberofitems = listbox1.items.count             count = "0"         else             timer1.enabled = false             button2.text = "start timer"         end if end sub   private sub timer1_tick(sender object, e eventargs) handles timer1.tick          if count < numberofitems             dim currentit3m string = listbox1.items(count)             msgbox(currentit3m)             count = count + 1         else             button2.text = "start timer"         end if     end sub  end class 


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -