Dear to All,I am making a program in visual basic 2008 for sending SMS.I have some Difficulties with ListBox and Labels with Timer.Please help me for solving my questions.
My questions are :
1 - I have a ListBox with Mobile Numbers as items of Listbox.
2- I have 3 Labels.
(First label is for showing listbox item)
(2nd Label is for showing counting 1 to 10)
(3rd Label is for showing Result such as Sending,Ok)
My question is that when user click the Send Message button.Then label1 show First item , label 2 start counting 1 to 10,after completing counting 3rd label show result such as Sending Is ok.
After this first label again show listbox item no 2 and counting againg start and so on.When completed all the Items in listbox , A message show us that Operation has Completed.
Please help me in this matter.
I have use following code but this code only show counting and result .
For i = 0 To ListBox1.Items.Count - 1
ListBox1.SelectedItem = ListBox1.SelectedItem + 1
Label1.Text = ListBox1.SelectedItem
Timer1.Start()
Timer1.Interval = 1000
Label2.Text += 1
If Label2.Text = 10 Then
Label3.Text = "Message has sent"
Timer1.Stop()
ListBox1.SelectedItem = ListBox1.SelectedItem + 1
End If
Next i
please help me.Thanks