2020年6月9日 星期二

vb.net 使用ColorDialog選顏色 [Use ColorDialog to select color]


1
2
3
4
5
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
   If ColorDialog1.ShowDialog <> Windows.Forms.DialogResult.Cancel Then
      Label1.ForeColor = ColorDialog1.Color
   End If
End Sub

沒有留言:

張貼留言