using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.ComponentModel;
namespace WindowsFormsApplication1
{
public class myButton:Panel
{
Control _preControl;
Color _myBackColor;
public Color MyBackColor
{
get { return _myBackColor; }
set { _myBackColor = value;
this.Invalidate();
}
}
public Control PreControl
{
get { return _preControl; }
set { _preControl = value;
this.Invalidate();
}
}
publ
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.ComponentModel;
namespace WindowsFormsApplication1
{
public class myButton:Panel
{
Control _preControl;
Color _myBackColor;
public Color MyBackColor
{
get { return _myBackColor; }
set { _myBackColor = value;
this.Invalidate();
}
}
public Control PreControl
{
get { return _preControl; }
set { _preControl = value;
this.Invalidate();
}
}
publ