Hi there...
Hopefully someone can help me.
I'm trying to run a chm (compiled HTML File) in VB, but i can't figure out how to do so.
If there is someone who can help me... please do so.
Thanks.
Printable View
Hi there...
Hopefully someone can help me.
I'm trying to run a chm (compiled HTML File) in VB, but i can't figure out how to do so.
If there is someone who can help me... please do so.
Thanks.
What do you mean by "Run" it. Do you mean you're trying to write your own viewer for it instead of HTML Help Viewer?
No, by running it I mean that I made a help file with extention *.chm that can be run stand alone.
But the thing is, I want to start the help file using my own application.
Thanks.
Aaron Young Posted an answer to a similar question on how
to open a file with it's associated application.
Here is a copy of Aaron's posting:
-----
Use the ShellExecute API,
it launches a files Associated Application:
code:
---------------------------------------------------
Code:Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Sub Command1_Click()
ShellExecute 0&, "OPEN", "C:\File.chm", "", "", 1
End Sub