c**t 发帖数: 2744 | 1 I have an animation gif file assigned to pictureBox:
pbStatus.Image = System.Drawing.Image.FromFile("runningRabbit.gif")
in designer the rabbit is running, but when run from debugger or released
app,
the rabbit is still. What's wrong? | c**t 发帖数: 2744 | 2 actually it's kind of working. When a long running job fired, as the
picturebox
running in the same thread, it's not redrawn. Once job is done, the
animation starts. I will try to use another thread for the picturebox.
【在 c**t 的大作中提到】 : I have an animation gif file assigned to pictureBox: : pbStatus.Image = System.Drawing.Image.FromFile("runningRabbit.gif") : in designer the rabbit is running, but when run from debugger or released : app, : the rabbit is still. What's wrong?
| b****u 发帖数: 1027 | 3 it should be the other way probably?
fire up the long running job in separate thread. |
|