CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2002
    Location
    Toronto
    Posts
    167

    Opening a HTML file

    I can't figure it out for the life of me, could somebody please show me how to get the /help/help.htm file to open when you click on Help then Show Help

    The project is included in the zip file.
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2002
    Posts
    13
    Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem2.Click
    Shell("C:\Program Files\Internet Explorer\IEXPLORE.EXE C:\Temp\Help\help.htm", AppWinStyle.NormalFocus, False)
    End Sub

    That will show the help file.. however you may want to find a way to have a variable for the location of the help file as most people won't put it in a temp directory ..

    One option may be to have a setup put the help file in a directory of your choice

  3. #3
    Join Date
    May 2002
    Location
    Toronto
    Posts
    167
    sorry out the frustration of not getting it to work and reading MS-VS help files for 6 hours I didn't really word my question properly. I was wondering if someone could stick in a "HelpProvider" and get it to show that file using the HelpProvider. I think I've read 300 pages of MS VS Help file and they just make a big circle and I can't figure it out.

    But thanks for your reply Angelicus, I've written down your code and am sure I will use that info in the future :-)

    /Jym

  4. #4
    Join Date
    Oct 2002
    Location
    Växjö, Sweden
    Posts
    225
    Have you checked out this example?

    Link

    /Leyan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured