How to get color value from colordialog
I am very new in Vb.NET ..
I need to save color value to a table, How to get the value of color?
Dim MyDialog As New ColorDialog
' Keeps the user from selecting a custom color.
MyDialog.AllowFullOpen = False
' Allows the user to get help. (The default is false.)
MyDialog.ShowHelp = True
' Sets the initial color select to the current text color,
MyDialog.Color = LblPreviewColor.ForeColor
' Update the text box color if the user clicks OK
If (MyDialog.ShowDialog() = DialogResult.OK) Then
LblPreviewColor.ForeColor = MyDialog.Color
' How to get the color value??
End If
I need advice .. thanks
Winanjaya