急问在C#中怎么用双缓冲消除绘图闪烁问题 Flicker free drawing using GDI+ and C#http://www.codeproject.com/cs/media/flickerFreeDrawing.asp 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我的问题解决了,protected override void OnPaint(PaintEventArgs e){ Bitmap memBmp = new Bitmap(this.ClientRectangle.Width, this.ClientRectangle.Height); Graphics gs = Graphics.FromImage(bitmap); // draw using gs .... // e.Graphics.DrawImage(memBmp,0,0); memBmp.Dispose(); gs.Dispose();}但是不是用http://www.codeproject.com/cs/media/flickerFreeDrawing.asp这个上面的方法,这个上面的方法弄不懂,using GDIDB; // Declare the namespace public class MainWnd : System.Windows.Forms.Form{ ... Some other code private DBGraphics memGraphics; ... Some other code public MainWnd() { memGraphics = new DBGraphics(); } };连GDIDB这个namespace都找不到哦 忘了,还要加上一句this.SetStyle(ControlStyles.DoubleBuffer|ControlStyles.UserPaint|ControlStyles.AllPaintingInWmPaint,true); 在aspx页面调用AspNetPager用户控件总是说编译错误或缺少webconfig配置文件 求一条SQL语句 我有一张EXCEL表,想把他读到DataSet中去,但是这个EXCEL表有表头和表尾。我该如何做?从N行开始读数据,到M行结束。 请大家推荐一下关于C#编程的网站 50分请教,关于调用dll的问题。 请问处理进程的Process 类 窗体闪烁的问题 关于地图,做过地图的来解答下 怎样设置DataGrid不让用户添加新行,但可以选择 C#继承的一个问题 数据库查询匹配的问题!!!!!!!!! 匹配问题
protected override void OnPaint(PaintEventArgs e)
{
Bitmap memBmp = new Bitmap(this.ClientRectangle.Width, this.ClientRectangle.Height);
Graphics gs = Graphics.FromImage(bitmap);
// draw using gs
....
//
e.Graphics.DrawImage(memBmp,0,0);
memBmp.Dispose();
gs.Dispose();
}
但是不是用
http://www.codeproject.com/cs/media/flickerFreeDrawing.asp
这个上面的方法,这个上面的方法弄不懂,
using GDIDB; // Declare the namespace
public class MainWnd : System.Windows.Forms.Form
{
... Some other code
private DBGraphics memGraphics;
... Some other code
public MainWnd()
{
memGraphics = new DBGraphics();
}
};连GDIDB这个namespace都找不到哦
this.SetStyle(ControlStyles.DoubleBuffer|ControlStyles.UserPaint|ControlStyles.AllPaintingInWmPaint,true);