Rev 807 |
Rev 810 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ColorPicker
{
public partial class ColorWidget
: UserControl
{
public ColorWidget
()
{
InitializeComponent
();
}
private void colorWheelBox_Paint
(object sender, PaintEventArgs e
)
{
Graphics g
= e
.Graphics;
g
.DrawString("This is a diagonal line drawn on the control",
new Font
("Arial",
10),
System.Drawing.Brushes.Blue,
new Point
(30,
30));
g
.DrawLine(System.Drawing.Pens.Red, colorWheelBox
.Left, colorWheelBox
.Top, colorWheelBox
.Right, colorWheelBox
.Bottom);
}
}
}