Solved

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

Posted on 2004-09-29
6
160 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

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 …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

737 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