bufferedpanel.cs

来自「A C# AI Library that implements Neural N」· CS 代码 · 共 20 行

CS
20
字号
using System;
using System.Windows.Forms;

namespace SOMOrganizing
{
	/// <summary>
	/// Dummy class to enable  doble buffering in Panel
	/// </summary>
	public class BufferedPanel : System.Windows.Forms.Panel
	{
		// Construcor
		public BufferedPanel( )
		{
			// Update control style
			SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw |
				ControlStyles.DoubleBuffer | ControlStyles.UserPaint, true );
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?