VB.NET Using ColorDialog

How To Use ColorDialog In Visual Basic.Net


In This VB.NET Tutorial We Will See How To Use ColorDialog And Change A Label Color Using It In Visual Basic .NET Programming Language .


Project Source Code:

Public Class VBNET_ColorDialog

    Private Sub BTN_COLOR_Click(sender As Object, e As EventArgs) Handles BTN_COLOR.Click

        Dim colors As DialogResult
        colors = ColorDialog1.ShowDialog()

        If colors = Windows.Forms.DialogResult.OK Then

            Label1.ForeColor = ColorDialog1.Color

        End If

    End Sub
End Class

OUTPUT:

vb.net using colordialog





Share this

Related Posts

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer