.net c#控件 Invalidate、Update、Refresh的区别
2012-08-18 23:13
302 查看
Invalidate marks the control (region, or rect) as in need of repainting, but
doesn't immediately repaint (the repaint is triggered when everything else has
been taken care of and the app becomes idle).
Update causes the control to immediately repaint if any portions have been
invalidated.
Refresh causes the control to invalidate, and then update (i.e. immediately
repaint itself).
Most of the time Invalidate is sufficient, and advisable as you can do a bunch
of invalidations (either explicit or implicit) and then let the control repaint
itself when the app is idle. It is advisable to use Update or Refresh when you
want the control to immediately repaint because the app will not be idle for a
user-noticable period of time.
doesn't immediately repaint (the repaint is triggered when everything else has
been taken care of and the app becomes idle).
Update causes the control to immediately repaint if any portions have been
invalidated.
Refresh causes the control to invalidate, and then update (i.e. immediately
repaint itself).
Most of the time Invalidate is sufficient, and advisable as you can do a bunch
of invalidations (either explicit or implicit) and then let the control repaint
itself when the app is idle. It is advisable to use Update or Refresh when you
want the control to immediately repaint because the app will not be idle for a
user-noticable period of time.
相关文章推荐
- C# WinForm窗体 控件Control 的 Invalidate、Update、Refresh的区别
- .net c#控件 Invalidate、Update、Refresh的区别
- WinForm-Invalidate、Update、Refresh的区别
- Invalidate, Repaint, Update, Refresh区别
- 【转】C# Invalidate() Update() Refresh()的区别
- Invalidate、Update、Refresh的作用和区别
- Control.Invalidate, Control.Update and Control.Refresh 有什么区别
- c# Invalidate() Update() Refresh()的区别
- Invalidate、Update、Refresh的作用和区别
- Invalidate,Update与Refresh的区别
- Invalidate,Update与Refresh的区别
- WinForm–Invalidate、Update、Refresh的区别
- WinForm--Invalidate、Update、Refresh的区别
- c# Invalidate() Update() Refresh()的区别
- Invalidate、Update、Refresh的作用和区别
- 控件更新Invalidate和postInvalidate的区别
- Winform程序中,Invalidate、Update和Refresh方法介绍
- Invalidate()与UpdateAllViews()的区别(转载)
- Invalidate()与UpdateAllviews()的区别
- Invalidate、Refresh、Update