I have a routine that prints multiple rectangles and I need to put a delay in between the printing of each object.
Dim i As Integer
For i = 0 To 49
Canvas.SetTop(lstRectangles(i), 150 + (i))
Canvas.SetLeft(lstRectangles(i), 150 + (i))
lstRectangles(i).Fill = Brushes.Yellow
'Dim x As Integer
'For x = 1 To 10000000
' do nothing
As you can see I have tried a couple of basic things which only provide a delay to the displaying of all objects at once; i.e. not between each object. I have created a DispatcherTimer instance but can't see how this can be used to work here.
Can anyone help please?
View Complete Post