G
Greg
I've been trying to figure out how to show a color dialog in VB.Net . I've
come across the following code that shows it, but its not the advanced color
dialog I am looking for. I know there is another way to show a color dialog
box, but I can't seem to find it.
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 = Me.BackColor
' Update the text box color if the user clicks OK
If (MyDialog.ShowDialog() = DialogResult.OK) Then
Me.BackColor = MyDialog.Color
End If
I thought there was a shortcut type of code that would allow me to show the
color dialog. Can anyone point me in the right direction .
Thanks.
come across the following code that shows it, but its not the advanced color
dialog I am looking for. I know there is another way to show a color dialog
box, but I can't seem to find it.
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 = Me.BackColor
' Update the text box color if the user clicks OK
If (MyDialog.ShowDialog() = DialogResult.OK) Then
Me.BackColor = MyDialog.Color
End If
I thought there was a shortcut type of code that would allow me to show the
color dialog. Can anyone point me in the right direction .
Thanks.