UserControl中的Doublebuffer [英] Doublebuffer in UserControl

查看:81
本文介绍了UserControl中的Doublebuffer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我收到以下内容:

错误1当前上下文中不存在名称'SetStyle' :\ test \ myclass.cs 38 13

当我这样做时:


SetStyle(ControlStyles.DoubleBuffer, true );


你不能在紧凑的框架中使用C#填充缓冲区

解决方案

您好


不,不是开箱即用的。您必须提供自己的实现。
MSDN库提供了有关如何实现双缓冲的示例: http://msdn2.microsoft.com/en-us/library/ms229661.aspx 。搜索结果,迈克尔


Hello,

I am getting the following:

Error 1 The name 'SetStyle' does not exist in the current context C:\test\myclass.cs 38 13 

When I do this:

SetStyle(ControlStyles.DoubleBuffer, true);

Can't you double buffer in the compact framework using C# ??

解决方案

Hi

No, not out of the box. You have to provide your own implementation.
The MSDN library provides a sample on how to implement double buffering here: http://msdn2.microsoft.com/en-us/library/ms229661.aspx.

Michael


这篇关于UserControl中的Doublebuffer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆