Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用计时器PictureBox在表单内移动。图片框在其后面留下一条白色的痕迹,当图片框停止时消失。有什么办法可以摆脱白色的痕迹吗?我已经尝试过this.Invalidate();删除痕迹但导致整个表格闪烁直到图片框停止。
PictureBox
this.Invalidate();
如果有人能帮我解决这个问题,我将不胜感激!
在 WinForms 中制作动画通常比在 WPF 中困难得多,因为 WinForms 并非旨在支持动画。
查看为 WinForms 提供一些动画功能的开源库 Dot Net Transitions
过渡库允许您为 .NET 的用户界面元素的任何属性创建动画过渡。它提供了一种在 .NET 中执行 UI 动画的简单方法,类似于 Apple 和 iPhone 的 Core Animation 库。
http://code.google.com/p/dot-net-transitions/