Hi, I have an if statemenet, in the 1st branch, I execute a datareader and want to update a label with the count number, the else branch will freeze the execution for 1 minute (I use Thread.sleep)
In both branches, I have a stamenet to update the content of the lable, this is not happening inside the loop, If, label is updated by the end of the sub, here is the simplified piece of code
If imailBacthcount <= CInt(txtBatcCount.Text) Then
lblCountEmailSent.Content = "count : " + iCount.ToString + " last Sent to "
lblCountEmailSent.Content = iCount.ToString + " sent, waiting for next 5"
Thread.Sleep(CInt(txtBatchPeriod.Text) * 60 * 1000)
It is only updated at the end as "10 sent, waiting for next 5"
Thanks in advance
View Complete Post