vb.net 'Color' is ambiguous in the namespace 'System.Drawing'
Posted on 2014-11-25
I tranasferred my project from VB6 to VB.net, and in one form on the line stating "Me.Frm1.BackColor = System.Drawing.Color.White" I get an error message 'Color' is ambiguous in the namespace 'System.Drawing'.
In another form on the same line, there is no error message. However, I did recognize one difference, that it when I highlight the word "System" it shows up "Namespace System" and when highlighting the word Drawing it shows up "Namespace Drawing".
As opposed to the previous from where the error showed up, when I highlight the word "System" it shows up "... Namespace System.Drawing".
I get these error messages for Point, and Size, and Color and Font.
Why is this happening in one form and not in the other, and how do I get rid of this error message?