I needed a function to convert a color to its Hex value so I asked ChatGPT. Here's the Function in case someone else finds it useful.
Private Function ColorToHex(color As Color) As String Return String.Format("#{0:X2}{1:X2}{2:X2}", color.R, color.G, color.B) End Function
ChatGpt is certainly getting better with code. Still have to correct what is given sometimes though, or sometimes the code will refer to Properties, Methods, and even Events that don't exist.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Visual Basic Forum.