How can I declare an optional color parameter in some function or sub, as if I do that in the normal way (I mean to give some default color for that optional parameter) as t
There is another feature in the .NET color world that will allow you to carry out your original intentions. The feature is an enumeration called "KnownColor" which can freely translate back and forth to System.Drawing.Color objects. While it doesn't have ALL possible colors, it has all the colors I have ever needed. And because it is an enumeration, it has "constants" that work as default value specifiers in an optional argument. Example:
Private Sub Test(a As Integer, Optional kc As KnownColor = KnownColor.Black)
Dim MyColor As System.Drawing.Color = Color.FromKnownColor(kc)
......
End Sub
According to
https://docs.microsoft.com/en-us/dotnet/api/system.drawing.color.toknowncolor
you can use the System.Drawing.Color.ToKnownColor() function to translate back to a value in the KnownColor enumeration if the Color is created from a predefined color by using either the FromName(String) method or the FromKnownColor(KnownColor) method. Otherwise it will return the value 0.