using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Design;
using System.Windows.Forms;
namespace HSkin.Controls
{
public class HSkinTableLayoutPanel : TableLayoutPanel
{
public HSkinTableLayoutPanel()
{
// 防止闪屏
this.GetType().GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(this, true, null);
}
private Color borderColor = Color.Black;
public Color BorderColor
{
get { return borderColor; }
set { borderColor = value; }
}
protected override void OnCellPaint(TableLay
C# TableLayoutPanel 绘制边框,防闪屏
最新推荐文章于 2025-02-27 02:48:38 发布