Posted 14 years ago
by Kevin Bennett

I use the SyntaxEditor document header and footers to define the basic structure for a class in VB.
For example:
HeaderText:
Public Class MyClass
Public Sub Run()
FooterText:
End Sub
End Class
In the Syntax Editor, I type in something like:
Dim s as
And Intelliprompt will kick up for the type specification. Let's say I pick String. Then on the next line try to use my string, like so:
Dim s as String
s.
No Intelliprompt will show up. Regardless of what type I declare in the first line, it will not show up.
I catch the SyntaxEditorIntelliPromptMemberListPreFilter event. In the VBContext that is passed into the IntelliPromptMemberListPreFilterEventArgs, the Type comes in as 'None'.
Any Ideas?
I can send the full example if need be.
For example:
HeaderText:
Public Class MyClass
Public Sub Run()
FooterText:
End Sub
End Class
In the Syntax Editor, I type in something like:
Dim s as
And Intelliprompt will kick up for the type specification. Let's say I pick String. Then on the next line try to use my string, like so:
Dim s as String
s.
No Intelliprompt will show up. Regardless of what type I declare in the first line, it will not show up.
I catch the SyntaxEditorIntelliPromptMemberListPreFilter event. In the VBContext that is passed into the IntelliPromptMemberListPreFilterEventArgs, the Type comes in as 'None'.
Any Ideas?
I can send the full example if need be.