
Signature
Carlos J. Quintero
The MZ-Tools all-in-one add-in, now for .NET: http://www.mztools.com
> The following article of mine incidentally shows how to do that:
Thanks for your answer, however I haven't managed to make it work. I pasted
the code from your article into a new add-in project substituting the
OnConnection method (or whatever it's name in VB ;) and put the MsgBox in
both OnConnection and BeforeExecute. The add-in is loaded succesfully as the
first box is being shown, but it doesn't show the message when clicking
help/about. Sorry, if it's something trivial, but I haven't used VB earlier
(and I could use it for this single project), so it may be my bad.
Thanks
SM - 10 Dec 2004 18:53 GMT
> Thanks for your answer, however I haven't managed to make it work. I pasted
Well, I'm truly puzzled - after working thru some other examples I finally
stumbled upon this: http://tinyurl.com/6p8qd
It works, but the thing is - I can't find any major difference between it
and your code - well, the CommandEvents is declared as a static public, and
you have it private, but it doesn't matter. The good thing is, that it
finally works :)
The bad - the Edit.ToggleOutliningExpansion command is not invoked when a
user clicks the collapsing button (the little plus or minus sign at the left
site of the code), even though they work the same. I don't know where to
look for the info about the correct command, and the macro recording doesn't
want to save this action (or any other called using the mouse, for that
matter). Any hints?
Thanks
> The following article of mine incidentally shows how to do that:
>
> BUG: Command events fired only to last addin loaded in Visual Studio .NET
> http://support.microsoft.com/default.aspx?scid=kb;en-us;555090
It shows only the bug but doesnt show how to remember COLLAPSED/OUTLINED
methods
I have also searched through the mztools articles and found nothing
But thanks for pointing out the bug anyway;)
Carlos J. Quintero [.NET MVP] - 13 Dec 2004 09:21 GMT
My answer was for this part of the post if you change "Help.About" by
"Edit.ToggleOutliningExpansion":
>I don't know how to hook
> the event of calling the "Edit.ToggleOutliningExpansion", so when the user
> collapses the code, I could be notified of it and store the action. I'd be
> greatful for a simple example of a code with such event handler.

Signature
Carlos J. Quintero
The MZ-Tools all-in-one add-in, now for .NET: http://www.mztools.com
> It shows only the bug but doesnt show how to remember COLLAPSED/OUTLINED
> methods
> I have also searched through the mztools articles and found nothing
>
> But thanks for pointing out the bug anyway;)