I can't figure this:
Original:
picMatch.Image = ImageListTraffic.Images(1)
MessageBox.Show("no match")
s.image = Nothing
picFirstPictureBox.Image = Nothing
The traffic image shows Red for No Match, but I needed a pause before
setting images to nothing. The MessageBox did that, but requires user click,
so:
picMatch.Image = ImageListTraffic.Images(1)
Threading.Thread.Sleep(2000)
s.image = Nothing
picFirstPictureBox.Image = Nothing
but this code does not set the traffic image until after the 2 seconds.
Why?? PS: There is something else that is in a code block above this block
that is also being delayed until after the sleep, so it is not just
everything inside this block. Block may be the wrong term, but hopefully u
understand.
P
"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Paul,
What do you mean by 'pause'? Will there be a visual button to 'restart',
is the pause for a specified period of time, etc.
Bernie Yaeger
"Paul Mars" <pa************@netzero.com> wrote in message
news:e8**************@TK2MSFTNGP12.phx.gbl... How to pause in the middle of a sub?
I can not use a timer. The Sub can not be broken in two.
tx,
paul