locked
F1 help from visual studio isolated shell 2015 RRS feed

  • Question

  • I have VS2008 isolated shell based application working fine with context help enabled for F1.

    I am porting it to VS2015 isolated shell.

    In VS 2008 I was using 

     
    helpService = (MsVsHelp80.Help2)serviceProvider.GetService(typeof(Microsoft.VisualStudio.VSHelp.SVsHelp));
     helpService.DisplayTopicFromKeyword(helptext);

    This works just fine in Vs2008.

    In VS2015 I get  "ShowHelp() exception occured with message: The method or operation is not implemented. " 

    F1 key is correctly captured in vs2015 and I can break into my code and I get error on DisplaytopicFromkeyword (...)

    Why it does not open the help viewer ? Is there any example code ?

    Any help is appreciated.

    Thanks,

    AG


    • Edited by AAG Monday, November 21, 2016 10:02 PM
    Monday, November 21, 2016 9:54 PM

All replies

  • Hi AAG,

    Please try to use Microsoft.VisualStudio.VSHelp80.Help2 instead of MsVsHelp80.Help2, for more information, please refer to the following document, which provide a simple demo.

    https://msdn.microsoft.com/en-us/library/bb128582.aspx

    Best regards,

    Cole Wu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, November 22, 2016 8:58 AM
  • Thank you Cole. 

    I have tried your suggestion but it did not help. Though I was able to launch Help viewer 2.2 using ...

     private void ShowHelp(string helpText)
            {
                try
                {
                    var helpService = (Microsoft.VisualStudio.VSHelp80.Help2)this.serviceProvider.GetService(typeof(Microsoft.VisualStudio.VSHelp.SVsHelp));
                    helpService.DisplayTopicFromF1Keyword(helpText);
                }
                catch (Exception e)
                {
                    Debug.WriteLine("On TerminalControl ShowHelp() exception occured with message: " + e.Message);
                }
            }

    The part that is very curious and I am not able to understand is when I type the command: Acc84E[i].SerialEncCtrlin my terminal and press F1 it opens the Help 2.2viewer and in the search text it shows as ACC84E[I].SERIALENCCTRL .

    Sure the help doesn't show up.

    This was working just fine in VS2008 and I read that the porting is not very painful but looks like every step we are having issue.

    Any help is appreciated. 

    Thanks,

    AG

    Tuesday, November 29, 2016 11:48 PM
  • Hi AAG,

    The following document provide a sample, which use vs2015.

    using System;
    using Extensibility;
    using EnvDTE;
    using EnvDTE80;
    using Microsoft.VisualStudio.VSHelp;
    using Microsoft.VisualStudio.VSHelp80;
    using System.Windows.Forms;
    
    public void OnConnection(object application,
    ext_ConnectMode connectMode, object addInInst, ref Array custom)
    {
        _applicationObject = (DTE2)application;
        _addInInstance = (AddIn)addInInst;
        HelpDisplayFromF1Example(_applicationObject);
    }
    
    public void HelpDisplayFromF1Example(DTE2 dte)
        {
        // This opens Document Explorer and 
        // displays the topic specified
        // by the F1 keyword.
        try
        {
            Microsoft.VisualStudio.VSHelp80.Help2 help2 =
    (Microsoft.VisualStudio.VSHelp80.Help2)_applicationObject.GetObject("Help2");
    
            // Display the Owner Attribute topic.
            help2.Contents();
            help2.DisplayTopicFromF1Keyword("Owner");
        }
        catch (SystemException ex)
        {
            MessageBox.Show("ERROR: " + ex);
        }
    }

    https://msdn.microsoft.com/en-us/library/bb128580.aspx

    Best regards,

    Cole Wu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, December 1, 2016 5:59 AM
  • Thanks Cole.

    I already knew about example but this is Add-in and I am not using Addin I want to use it as service and use the Help viewer . If you see my previous post I am able to get the viewer working using as service . the issue I am having is somehow the text typed on terminal get converted to uppercase. Please look at my previous post. 

    Thanks,

    Atul

    Thursday, December 1, 2016 4:40 PM
  • Hi Atul,

    Looks like you were able to successfully wire up the F1 support to invoke the help viewer. We get very few questions on Help Integration, and I haven't actually fielded any issues on this topic for a couple of release cycles now.

    But I don't believe the help system has changed much over the last few releases. So the content links below should still be valid:

       Microsoft Help Viewer 2.0 (MVP site)
       Help Viewer Administrator Guide

    If I had to guess, it sounds like your local help content has not been registered with the Help Viewer. The best info I've seen with respect to integrating Help 2.x content is on that MVP site above.

    Sincerely,


    Ed Dore

    Monday, December 5, 2016 7:01 PM