Solved

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

Posted on 2004-09-29
6
155 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

706 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

21 Experts available now in Live!

Get 1:1 Help Now