Add-In VS .NET 2003 ToolTip on Words in Editor
-
Hi all! For my vs .net 2003 add-in I need a possibility to show hints (-> ToolTip Component?) on words in the VS text-editor. Unfortunately the ToolTip Component can only be applied to controls (the DTE (application) -object does not have any class that is derived from control... Better than this would be a possibility to implement ms-word-comments in vs .net but i dont think that this is possible, even if i would save the comment-string on my own. Perhapts anyone can help. ps: please excuse my bad english ;)
-
Hi all! For my vs .net 2003 add-in I need a possibility to show hints (-> ToolTip Component?) on words in the VS text-editor. Unfortunately the ToolTip Component can only be applied to controls (the DTE (application) -object does not have any class that is derived from control... Better than this would be a possibility to implement ms-word-comments in vs .net but i dont think that this is possible, even if i would save the comment-string on my own. Perhapts anyone can help. ps: please excuse my bad english ;)
That's because you're not programming against a .NET application. The EnvDTE assembly is a COM interop assembly (RCW) that allows managed code to marshal calls to native COM components. Of course you won't find anything derived from the
System.Windows.Forms.Control
class. You have to use native tool tips, which are documented in the Platform SDK at http://msdn.microsoft.com/library[^]. Specifically, read ToolTip Controls[^]. You might also search MSDN[^] for helpful articles. There have been quite a few covering VS.NET Add-ins and one might just discuss what you need. More often than not, these articles - like here on CodeProject - are accompanied with sample source code. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog] -
That's because you're not programming against a .NET application. The EnvDTE assembly is a COM interop assembly (RCW) that allows managed code to marshal calls to native COM components. Of course you won't find anything derived from the
System.Windows.Forms.Control
class. You have to use native tool tips, which are documented in the Platform SDK at http://msdn.microsoft.com/library[^]. Specifically, read ToolTip Controls[^]. You might also search MSDN[^] for helpful articles. There have been quite a few covering VS.NET Add-ins and one might just discuss what you need. More often than not, these articles - like here on CodeProject - are accompanied with sample source code. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]