14 .net controls doublebuffered winforms
ControlStyles.DoubleBuffer和ControlStyles.OptimizedDoubleBuffer有什么区别?
ControlStyles.DoubleBuffer未显示在Intellisense下拉列表中,而ControlStyles.OptimizedDoubleBuffer实际上已列出.
MSDN文档没有立即明确区别(至少对我来说).
有趣。引导我在网络上搜索。
来自微软
OptimizedDoubleBuffer的文档指出,这将有助于减少闪烁,并具有与将UserPaint和AllPaintingInWmPaint ControlStyles设置为true相同的效果。但是,如果将OptimizedDoubleBuffer ControlStyle设置为true而不设置UserPaint和AllPaintingInWmPaint,则不会明显减少闪烁。设置DoubleBuffer,UserPaint和AllPaintingInWmPaint控件样式时,设置UserPaint和AllPaintingInWmPaint控件样式将导致与Visual Studio 2003中相同的减少的闪烁优化。换句话说-OptimizedDoubleBuffer和过时的DoubleBuffer之间似乎没有任何区别。
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=94096