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

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.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

raj1234Author Commented:
Edited text of question.
You'll have to use the ShowHelp method in stead of the ShowOpen method to show a help-file.
raj1234Author Commented:

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?

The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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&
open the help file externaly by using the shell method
shell "c:\windows\help\MyHelpFile.hlp", VBNormalFocus

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
raj1234Author Commented:
I want to use Commondialog rather than shell.

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



It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.