在做Windows Forms开发的时候,免不了需要手动刷新窗口,以重绘所需更改的控件,或其它什么的.当出现这类需求时,你有三个选择,使用Invalidate,Update或者Refresh方法. Invalidate有六个重载方法: public void Invalidate(Region region) public void Invalidate(Region region, bool invalidateChildren) public void Invalidate() public
Control.Refresh - does an Control.Invalidate followed by Control.Update.Refresh: 强制控件使其工作区无效并立即重绘自己和任何子控件.== Invalidate Update Control.Invalidate - invalidates a specific region of the Control (defaults to entire client area) and causes a paint messa
iisreset -- 对象是整个IIS服务器,这个操作会先停止万维网的服务(World Wide Web Publishing Service)然后在重启此服务,因此所有的网站都会先停止服务然后在重新开始服务. As pointed out, iisreset will stop and start the World Wide Web Publishing Service. This, of course, applies to all of your application pools.