我的程序中有一个功能,是让鼠标拖拽一些物体,这样在MouseMove事件中就得不停Invalidate一块区域,会出现闪烁现象,怎么才能避免这个现象?
解决方案 »
- vs2010 c#无法加载窗体设计器 求高手解决
- c# RSA 只提供公钥 Exponent Modulus 如何进行加密?
- wpf有自带的或者第三方提供的FontDialog/FontPicker吗?
- 远程访问的提问?
- 加载一个页面需要调用3个一样的方法 如何只调用一次
- 求助啊~~C#怎样实时监听外网的连接状况,在外网掉线的时候提示?
- 哪有VS.NET 2005下载的啊?
- 各位哪里有好的文件分发软件共享一下呀
- NameValueCollection可否二进制序列化
- 100分求解!
- 请教一个textBox的DoubleClick问题。
- c#执行cmd,怎么对有空格的路径进行执行?(由于有空格不能实现)
this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.UserPaint, true);
public class MyPanel : System.Windows.Forms.Panel
{
public MyPanel()
{
this.SetStyle(System.Windows.Forms.ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(System.Windows.Forms.ControlStyles.DoubleBuffer, true);
this.SetStyle(System.Windows.Forms.ControlStyles.UserPaint, true);
this.SetStyle(System.Windows.Forms.ControlStyles.ResizeRedraw, true);
}
}