Yes, I did read what the docs says about this, but I'm still working on how to understand it. I've been focusing mostly on how the docs say to fix the issue. Here is a small class I made that gets the warning...
Code:
Public Class MenuColorTable
Inherits ProfessionalColorTable
Public Sub New()
MyBase.UseSystemColors = False
End Sub
Public Overrides ReadOnly Property MenuBorder As Color
Get
Dim thisColor As Color = Color.FromArgb(52, 64, 85)
Return thisColor
End Get
End Property
End Class
This is how the docs say to fix the violation...
To fix a violation of this rule, make the base types COM visible or the derived type COM invisible.
Ok, I have just now found out how to fix the issue. In AssemblyInfo.vb, ComVisible was declared as
Code:
<Assembly: ComVisible(True)>
I just changed it to:
Code:
<Assembly: ComVisible(False)>
And every warning went away
I guess I can chalk this up to growing pains... If I ever see the warning again, I know what to look for now.
Thanks jmcilhinney for helping me to think about this. I really appreciate it!