Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Add-In VS .NET 2003 ToolTip on Words in Editor

Add-In VS .NET 2003 ToolTip on Words in Editor

Scheduled Pinned Locked Moved C#
csharpvisual-studiohelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nxsis
    wrote on last edited by
    #1

    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 ;)

    H 1 Reply Last reply
    0
    • N Nxsis

      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 ;)

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      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]

      A 1 Reply Last reply
      0
      • H Heath Stewart

        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]

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Thanks a lot. This is exactly the information i needed.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups