Base class property members not showing

SyntaxEditor .NET Languages Add-on for Windows Forms Forum

Posted 17 years ago by Talyrond
Hi I am evaluating your excellent product and have only one outstanding item to resolve.
Please see the code sample below, this works, specifically the members of protected property 'Point'. So the 'X' will show in the intelliPrompt list

Imports System.Drawing
Public Class ClassBase

    Private pt As Point

    Protected ReadOnly Property Point() As Point
            Return pt
        End Get
    End Property

End Class

Public Class ClassA
    Inherits ClassBase

    Public Sub Test()
    Dim x As Integer
    x = Me.Point.X

    End Sub

End Class
Now this does not seem to work if the class 'ClassBase' is pushed out to an external code file.
The 'Point' property is reflected but not the members.

I have a sample project if that helps



Comments (2)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
This is because you didn't import any namespaces. You need to import System.Drawing for Point to be resolved. You can add imports in the Document.HeaderText if you don't want them visible to the end user.

Actipro Software Support

Posted 17 years ago by Talyrond
Thanks for the reply.

The import was in the app proper, just forgot to copy it.

But you were right, the imports needed to be in the external file as well


The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.