Can you use Help.ShowHelp to display in a AxWebBrowser object, if so how?

Hello experts,

Can you use Help.ShowHelp to display in a AxWebBrowser object, if so how?  The only place i can get it to display is in a new EI window.  Where I would like it to display is in the AxWebBrowser object on the "TabControl" selected index 2.  As you can see below, the commented out code and Sub LoadHelp work, but what is the point of Help.ShowHelp() function if you can not use it the way you want.  =)



Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown

        If e.KeyCode = Keys.F1 Then
            Help.ShowHelp(Me, "C:\Documents and Settings\netdg1\My Documents\Visual Studio Projects\FileSifterDataset\bin\help.htm")
            'TabControl1.SelectedIndex = 2
        End If

End Sub

Private Sub LoadHelp()

        'Load the Help Document in the help section
        Dim bLoaded As Boolean

        If bLoaded = False Then
            Dim nullObject As System.Object = 0
            Dim str As String = ""
            Dim nullObjStr As System.Object = str

            Cursor.Current = Cursors.WaitCursor
            AxWebBrowser1.Navigate(FilePath, nullObject, nullObjStr, nullObjStr, nullObjStr)
            Cursor.Current = Cursors.Default
            bLoaded = True
        End If

End Sub
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
What happened when you used LoadHelp?  I don't see, though, in LoadHelp, where you pass FilePath.

timmyzx7rAuthor Commented:
This is the file path   "C:\Documents and Settings\netdg1\My Documents\Visual Studio Projects\FileSifterDataset\bin\help.htm"

You can just as well substitute "FilePath" for "C:\Documents and Settings\netdg1\My Documents\Visual Studio Projects\FileSifterDataset\bin\help.htm".
For the problem at hand yes it was never passed in I as a varible but it should be "C:\Documents and Settings\netdg1\My Documents\Visual Studio Projects\FileSifterDataset\bin\help.htm"

Sorry for abou that I just was being lazy.

timmyzx7rAuthor Commented:
Oops to anwser the question... when i used LoadHelp() it loaded where I wanted it to in the AxWebBrowser  obj.  I just want help.showhelp() to load there.
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

Bob LearnedCommented:
I don't think that you can get this to work, without a lot of complicated magic, of which I don't have.  Why don't you want to just show the htm file in the browser?

timmyzx7rAuthor Commented:
It does not matter about showing it in the browser to me, it is not really even my project, it just will not get done if I don't do it..  But, unfortunately it is already approved in the use case that way.  My other method LoadHelp() works, but I was just curious if the Help.showhelp was able to do it.

Thank you,
Bob LearnedCommented:
In the case of Help.ShowHelp(Me..., what is the context for Me.  Is it the WebBrowser control or a form?  If it is the form, you might try the browser control as the parent instead.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.