Solved

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

Posted on 2004-09-29
6
156 Views
Last Modified: 2010-04-23
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.  =)

Thanks,

-Tim

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")
            'LoadHelp()
            '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
0
Comment
Question by:timmyzx7r
  • 3
  • 3
6 Comments
 
LVL 96

Expert Comment

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

Bob
0
 

Author Comment

by:timmyzx7r
ID: 12183891
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.

-Tim
0
 

Author Comment

by:timmyzx7r
ID: 12183902
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.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 96

Expert Comment

by:Bob Learned
ID: 12183940
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?

Bob
0
 

Author Comment

by:timmyzx7r
ID: 12189177
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,
Tim
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 50 total points
ID: 12189196
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.

Bob
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
A short film showing how OnPage and Connectwise integration works.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now