Hi All,
I'm trying to make following subroutine work. The problem is this part of the statement.

Code:
Optional ByVal _CurveColor As System.Drawing.Color = Color.Blue
I've tried everything and can't seem to come up with a constant to use here. Any ideas?

Code:
Public Sub New(Optional ByVal _CurveName As String = "Curve", Optional ByVal _CurveColor As System.Drawing.Color = Color.Blue, Optional ByVal _UseY22 As Boolean = False)
        CurveName = _CurveName
        CurveColor = _CurveColor
        useY2 = _UseY22

    End Sub