IntelliSense Namespaces problem

SyntaxEditor for Windows Forms Forum

Posted 19 years ago by Radventure B.V
Avatar
When the user has typed "using" namespace followed by a point (for example "using System."), I want to show only the subnamespaces from the entered namespace.

I thought I could use the flag IntelliPromptNamespaceAndTypeFlags.Namespaces for that purpose, but when I use that flag the memberlist doesn't get filled
when calling AddReflectionForAssemblyNamespacesAndTypes. I'm probably forgetting something...

This is very easy to reproduce by changing the line:
flags[index] = IntelliPromptNamespaceAndTypeFlags.NamespacesAndTypes | IntelliPromptNamespaceAndTypeFlags.Public;

into:

flags[index] = IntelliPromptNamespaceAndTypeFlags.Namespaces;

Erik Pepping

Comments (2)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Erik,

In the sample app, change the line:
flags[index] = IntelliPromptNamespaceAndTypeFlags.NamespacesAndTypes | IntelliPromptNamespaceAndTypeFlags.Public;

to:
flags[index] = IntelliPromptNamespaceAndTypeFlags.Namespaces | IntelliPromptNamespaceAndTypeFlags.Public;

That works like what you want.


Actipro Software Support

Posted 19 years ago by Radventure B.V
Avatar
Thanks! That works perfect.

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

Add Comment

Please log in to a validated account to post comments.