Solved

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

Posted on 2004-09-29
6
161 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

687 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