• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 504
  • Last Modified:

Commondialog Showopen

I'm using a Commondialog control in my vb 6.0 application to display a help file.

I'm using the following code to load the help file "helpfilename" on clicking a command button.

Commondialog.helpfile = helpfilename
commondialog.helpcommand=constopenhelpindex
commondialog.showopen

It was working fine till some hot links were added to the help file. The help file was web enabled, hot links will bring up web pages.On click, the help window just flashes and disappears. Any idea of what's going on there?

Instead it works for double click or with another help window open.

Raj
0
raj1234
Asked:
raj1234
  • 3
  • 2
1 Solution
 
raj1234Author Commented:
Edited text of question.
0
 
Jeremy_DCommented:
You'll have to use the ShowHelp method in stead of the ShowOpen method to show a help-file.
0
 
raj1234Author Commented:
Thanks

But I tried showhelp method (I'm sorry, I meant to say commondialog.showhelp) and also

commondialog.action = 6 to display the help file.

The help window just flashes and disappears.

Is there anything different the way it works for a help file and a web enabled help file?

Raj
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Jeremy_DCommented:
Sorry, I have no idea then.

What happens when you use the WinHelp API?

Private Declare Function WinHelp Lib "user32" Alias _
                        "WinHelpA" (ByVal hWnd As Long, ByVal lpHelpFile As String, _
                                    ByVal wCommand As Long, ByVal dwData As Long) As Long
Private Const HELP_FINDER = &HB&

WinHelp MyForm.hWnd, "c:\windows\help\MyHelpFile.hlp", HELP_FINDER, 0&
0
 
AndySulzCommented:
open the help file externaly by using the shell method
shell "c:\windows\help\MyHelpFile.hlp", VBNormalFocus
0
 
raj1234Author Commented:
I want to use Commondialog rather than shell.

It works for showhelp method with the other values of helpcommand except for cdlhelppartialkey.

Thanks

Raj



0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now