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


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


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

Please log in to see this code.
profile picture


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


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).