RemoveExternalReference not removing assembly

SyntaxEditor .NET Languages Add-on for Windows Forms Forum

Posted 13 years ago by Brook Hunter
Version: 4.0.0289

First off, let me say what a FANTASTIC component the ActiPro Syntax Editor for Winforms with the .NET Languages Add-On is. I've made a complex Visual Studio .NET 2010-like interface with it and it is hard to tell the difference between the two when I am using it!

Now my question: My application has a dialog box to remove assembly references from my "code project". When I do this, I would like the Intelliprompt for this assembly to immediately disappear. How can I do this?

Note: I am able to make the Intelliprompt disappear once the application is restarted by doing the following, but I want it to work without the application having to be restarted every time.

/// My "Intelliprompt Disappear on Application Restart" Solution ///

#1. When I press the "Remove Assembly Reference" button, I call this line of code:


#2. Then, on application close, I call:


#3. Then, on Application Start, I load up all the assemblies that are still in the my list (not the one I just removed) by calling:



Thanks is advance for any help!


Comments (2)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Brook,

We're glad you're having a great experience with the product.

For your question, doing your first line (RemoveExternalReference call) should be enough to remove the assembly reference. If I run our .NET Reflection sample and then remove the System.Drawing reference using the toolbar button, hovering over Color in the sample code no longer shows quick info. We just call RemoveExternalReference there.

Actipro Software Support

Posted 13 years ago by Brook Hunter
Hello ActiPro Software Support,

Thanks for the tip! I figured it out by looking at your sample.

I was passing the File Path of the assembly to the RemoveExternalReference() method, which doesn't work.

Your sample passes the Assembly.FullName to the RemoveExternalReference() instead of the file path to the assembly, which works perfectly.

Thanks again!

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.