嗨,我有一个c#用户控件,我重写了OnPaint方法。// Draw the new button. Color btnColor = this.ButtonColor; btnColor = Color.LightGray;
Bitmap GraphicsImage = new Bitmap(24, 24, System.Drawin
在搜索的过程中,我偶然发现了DoubleBuffered方法,每个人都说它能让事情变得更好。当我使用它时,dataGridView2.DoubleBuffered(true)行变红并显示错误消息: CS1955 C#不可调用成员不能像方法一样使用。此处无法访问受保护的属性“”DoubleBuffered“”。“ }
public void DoubleBuffered(DataGridView dgv, b