Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MsgBox & Help File

Status
Not open for further replies.

elziko

Programmer
Nov 7, 2000
486
GB
I'm trying to get a msgbox to provide context sensitive help.

In the msgbox's arguments, I give it both the path of the help file and the context number. However I'm told that I'm unable to display help. I click OK and then the MSDNhelp file opens up to tell me "Can't find Windows Help .EXE file"

However I can open the file just fine using some sort of help OCX:

Public Declare Function HtmlHelp Lib "Hhctrl.ocx" Alias "HtmlHelpA" (ByVal hWndCaller As Long, ByVal pszFile As String, ByVal uCommand As Long, ByVal dwData As Long) As Long

Can I not use HTML help files with the msgbox? Or do I need to install something else? VERY confused!

Cheers

elziko
 
To display my help files .htm

I use a control called webbrowser on form form that load on a click of a button

If that's not what you want, ok. Else, I can explain you how.
 
Thanks, but I want to open help using the microsoft .exe from the help button on a standard msgbox help button using the context ID.

Using another control/thirdparty .exe would mean me creating my own own version of the msgbox which would use the control/.exe. This would be too much effort as it would have to also mimick every possible MS msgbox argument to be backwardly compatible with the rest of the application.

Anyone else come up against this problem?

elziko
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top