Hi All,
This question is in regards to VS2003 (using C#, if that's important), but I
would appreciate any comments on VS2005 (if there is a difference), as I will
be moving to that "soon."
I am making a first attempt at creating my own Add-In (more as an exercise
in doing so than for any really useful functionality). Anyway, I would like
to be able to "grab" the currently selected text, much like the Help or
Find/Replace functions do. Hopefully, this is a fairly straight-forward
request.
Thanks,
pagates
Carlos J. Quintero [VB MVP] - 17 Jan 2006 10:37 GMT
Hi,
Since this is a FAQ, I have just written a KB article about it (it can take
some minutes to appear live yet):
HOWTO: Get the selected text from a Visual Studio .NET macro or add-in.
http://support.microsoft.com/default.aspx?scid=kb;en-us;555557
You have lots of resources to get started with add-ins on my web site
(below)

Signature
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
> Hi All,
>
[quoted text clipped - 13 lines]
> Thanks,
> pagates