Indicator Library: type Color is not recognized
Author: ckl36
Creation Date: 8/3/2016 11:00 PM
profile picture

ckl36

#1
I am trying to get started with Visual Studio. I copied the example in the WLP_Indicator_Library PDF into Visual Studio.

It seems to not recognize the 'Color' type (public abstract Color DefaultColor). Specifically, I get a compile error on the DefaultColor override because "The type 'Color' is defined in an assembly that is not referenced.

If I have the C# terminology correct, the WealthLab.dll is an assembly and this dll should be defining 'Color'.

Regardless, I am at a loss as to how to correct this problem.

I have attached pictures and the code.

I appreciate any help in this regard.
profile picture

Eugene

#2
Color is a .NET class so you have to add a reference to System.Drawing in Solution Explorer and then a using clause:

CODE:
Please log in to see this code.
profile picture

ckl36

#3
Thank you. I did previously try "using System.Drawing" but VS did not recognize that. Adding the Solution Explorer reference worked.

Thanks again.

Also, please note that after I posted this original request, I came back and could not find it. Consequently, I reposted this request. Then, poking around I found my original post with your response.

I apologize for the inconvenience I might have caused by the repost.
profile picture

Eugene

#4
You're welcome. No problem with the repost. Always glad to help.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).