用button时间 调出颜色对话框来:
private void btnForeColor_Click(object sender, EventArgs e)
{
using (ColorDialog cdialog = new ColorDialog())
{
cdialog.AnyColor = true;
if (cdialog.ShowDialog() == DialogResult.OK)
{
this.b.ForeColor = cdialog.Color;
this.btnForeColor.BackColor = this.b.ForeColor;
}
}