2014年7月4日 星期五

VB.Net 顏色 【色版顏色】】


【色版顏色】
-----------------------------------------------------------------------------------------------
下繪一橫紅線
 Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
        Dim g As Graphics = e.Graphics
        Dim redpen As Pen = New Pen(Color.white, 3)
        g.DrawLine(redpen, 0, 90, 285, 90)
    End Sub
-------------------------------------------------------------------------------------------------
Me.MaximizeBox = False
-------------------------------------------------------------------------------------------------
button1.BackColor = System.Drawing.SystemColors.Control (原色)

Button1.BackColor = System.Drawing.Color.*****
Button1.BackColor = Color.FromArgb(***,***,***)

01-Button1.BackColor = System.Drawing.Color.White
02-Button1.BackColor = Color.FromArgb(224, 224, 224)
03-Button1.BackColor = System.Drawing.Color.Silver
04-Button1.BackColor = System.Drawing.Color.Gray
05-Button1.BackColor = Color.FromArgb(64, 64, 64)
06-Button1.BackColor = System.Drawing.Color.Black

07-Button1.BackColor = Color.FromArgb(255, 192, 192)
08-Button1.BackColor = Color.FromArgb(255, 128, 128)
09-Button1.BackColor = System.Drawing.Color.Red
10-Button1.BackColor = Color.FromArgb(192, 0, 0)
11-Button1.BackColor = System.Drawing.Color.Maroon
12-Button1.BackColor = Color.FromArgb(64, 0, 0)

13-Button1.BackColor = Color.FromArgb(255, 224, 192)
14-Button1.BackColor = Color.FromArgb(255, 192, 128)
15-Button1.BackColor = Color.FromArgb(255, 128, 0)
16-Button1.BackColor = Color.FromArgb(192, 64, 0)
17-Button1.BackColor = Color.FromArgb(128, 64, 0)
18-Button1.BackColor = Color.FromArgb(128, 64, 64)

19-Button1.BackColor = Color.FromArgb(255, 255, 192)
20-Button1.BackColor = Color.FromArgb(255, 255, 128)
21-Button1.BackColor = System.Drawing.Color.Yellow
22-Button1.BackColor = Color.FromArgb(192, 192, 0)
23-Button1.BackColor = System.Drawing.Color.Olive
24-Button1.BackColor = Color.FromArgb(64, 64, 0)

25-Button1.BackColor = Color.FromArgb(192, 255, 192)
26-Button1.BackColor = Color.FromArgb(128, 255, 128)
27-Button1.BackColor = System.Drawing.Color.Lime
28-Button1.BackColor = Color.FromArgb(0, 192, 0)
29-Button1.BackColor = System.Drawing.Color.Green
30-Button1.BackColor = Color.FromArgb(0, 64, 0)

31-Button1.BackColor = Color.FromArgb(192, 255, 255)
32-Button1.BackColor = Color.FromArgb(128, 255, 255)
33-Button1.BackColor = System.Drawing.Color.Cyan
34-Button1.BackColor = Color.FromArgb(0, 192, 192)
35-Button1.BackColor = System.Drawing.Color.Teal
36-Button1.BackColor = Color.FromArgb(0, 64, 64)

37-Button1.BackColor = Color.FromArgb(192, 192, 255)
38-Button1.BackColor = Color.FromArgb(128, 128, 255)
39-Button1.BackColor = System.Drawing.Color.Blue
40-Button1.BackColor = Color.FromArgb(0, 0, 192)
41-Button1.BackColor = System.Drawing.Color.Navy
42-Button1.BackColor = Color.FromArgb(0, 0, 64)

43-Button1.BackColor = Color.FromArgb(255, 192, 255)
44-Button1.BackColor = Color.FromArgb(255, 128, 255)
45-Button1.BackColor = System.Drawing.Color.Fuchsia
46-Button1.BackColor = Color.FromArgb(192, 0, 192)
47-Button1.BackColor = System.Drawing.Color.Purple
48-Button1.BackColor = Color.FromArgb(64, 0, 64)

沒有留言:

張貼留言