ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Win

Win

原创 Linux操作系统 作者:NTcosmos 时间:2009-11-26 10:30:09 0 删除 编辑
1.Control 刷新打开缓冲,防止闪烁
            SetStyle(ControlStyles.DoubleBuffer | ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
            UpdateStyles();
   还有一思路是GDI描画界面,实际操作时再初始化控件,防止加载过多控件闪烁。

2.控件里新建一个 private System.ComponentModel.IContainer components = null; 该控件 Control .Add() 时,将对象也添加到 新建的 components 里。
该控件 Control .Clear()时,同时调用 components .Dispose(), 可以使任务管理器里的 UserObject 数目 更改。 (是销毁了吗???)

3.SuspendLayout()  暂时挂起
   ResumeLayout(false)  唤醒

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12913851/viewspace-620583/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 查缺补漏
下一篇: DB
请登录后发表评论 登录
全部评论

注册时间:2009-03-29

  • 博文量
    14
  • 访问量
    8819