Click to See Complete Forum and Search --> : Opening a HTML file


Jym
December 22nd, 2002, 10:24 AM
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.

Angelicus
December 23rd, 2002, 02:22 AM
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

Jym
December 23rd, 2002, 06:28 AM
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

Athley
December 23rd, 2002, 01:17 PM
Have you checked out this example?

Link (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvssamp/html/vbcs_AssociatingHelpwithanApplication.asp)

/Leyan