Example #1
0
        private void button7_Paint(object sender, PaintEventArgs e)
        {
            DrawControls.Draw(e.ClipRectangle, e.Graphics, 18, false, Color.FromArgb(113, 113, 113), Color.FromArgb(0, 0, 0));
            base.OnPaint(e);
            Graphics g = e.Graphics;

            g.DrawString("×", new Font("微软雅黑", 13, FontStyle.Regular), new SolidBrush(Color.White), new PointF(10, 10));
        }
Example #2
0
        private void button2_Paint(object sender, PaintEventArgs e)
        {
            DrawControls.Draw(e.ClipRectangle, e.Graphics, 18, false, Color.FromArgb(210, 210, 210), Color.FromArgb(242, 242, 242));
            base.OnPaint(e);
            Graphics g = e.Graphics;

            g.DrawString("清空", new Font("微软雅黑", 9, FontStyle.Regular), new SolidBrush(Color.Black), new PointF(10, 10));
        }