vb.net 使用ColorDialog選顏色 [Use ColorDialog to select color]
1
2
3
4
5
PrivateSub Button1_Click(sender AsObject, e As EventArgs) Handles Button1.Click
If ColorDialog1.ShowDialog <> Windows.Forms.DialogResult.Cancel Then
Label1.ForeColor = ColorDialog1.Color
EndIfEndSub
沒有留言:
張貼留言