moongodess
Active member
- Joined
- Dec 23, 2004
- Messages
- 40
Hi!
Im trying to open a chm file in a specific page, but i cant find out how to do this..
In my old vb6 project I had a module with the code:
I used the upgrade tool from vb.net to have an idea on how to do this and the result was exactly the same peace of code.
I verified that it open the file, but not in the page i tell it to open..
Anyone knows how can I do this?
Im trying to open a chm file in a specific page, but i cant find out how to do this..
In my old vb6 project I had a module with the code:
Option Explicit
Private Declare Function hHelp Lib "HHCtrl.ocx" Alias "HtmlHelpA" ( _
ByVal hWndCaller As Long, ByVal pszFile As String, ByVal uCommand As Long, dwData As Any) As Long
Private Const HH_DISPLAY_TOPIC = &H0
Private Const HH_HELP_CONTEXT = &HF
Private Const HLP_FILE = "HELP Host FO - SEF.chm"
Public Const HLP_INDEX = "Index.htm"
Public Const HLP_BD = "ConfigurarLigacaoBd.htm"
Public Const HLP_INI = "IniInterface.htm"
Public Const HLP_INICONFIG = "IniInterfaceConfiguracoes.htm"
Public Const HLP_INIEXEC = "IniInterfaceExecutar.htm"
Public Sub gsOpenHelp(strWhatHelp As String)
On Error GoTo Err_Init
Dim strPath As String
Dim strFile As String
strPath = App.Path
strFile = HLP_FILE
ChDir strPath
hHelp 0, strFile, HH_DISPLAY_TOPIC, ByVal strWhatHelp
Exit Sub
Err_Init:
gsError Err.Number, Err.Description
Exit Sub
End Sub
I used the upgrade tool from vb.net to have an idea on how to do this and the result was exactly the same peace of code.
I verified that it open the file, but not in the page i tell it to open..
Anyone knows how can I do this?