Code:
Public Sub AddColor(ByVal newColor As Color)
Dim objColorPaletteButton As New ColorPaletteButton(newColor)- Error 1
Buttons.Add(objColorPaletteButton)- Error 2
End Sub
After run,
-Error 1 Array bounds cannot appear in type specifiers.
-Error 2 Name 'objColorPaletteButton' is not declared.