Rick
Tue Dec 16 17:22:38 CST 2003
James,
Unfortunately this is the way the Help engine works. This happens not only
in .Net but in Win32 apps as well. The help file will pop up on top only the
first time it's loaded. After that it's activated in the current stack
location. I consider that a bug in the Help APIs. It behaves kind of similar
to the way IE behaves when you load things into the same window...
I think the approach that Tim showed (or something similar using just
FindWindow and SetForegroundWindow) is about the only way to make sure your
help pops ontop.
To make things worse the .Net Help Provider provides no hooks of any kind to
extend it either...
Help is one of the things that Microsoft is really bad with and this Help
API stinks and has been stale for 5+ years now with not even a clear vision
of how that's going to be improved in the next Windows version (all we got
was a horrible presentation at PDC)...
+++ Rick ---
--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwhelp/
http://www.west-wind.com/blog/
----------------------------------
Making waves on the Web
"James Hancock" <jamie@darwinconsulting.com> wrote in message
news:u2cBPXBxDHA.3140@TK2MSFTNGP11.phx.gbl...
> Why is it that ShowHelp causes the Help file to show up as some sort of
> child to the main application? (I've tried this with MS help files and it
> does the same, it isn't my help file per-say) You can't click on the
> application without bring the help file to the front, you can't alt+Tab
> between the help file and the application etc.
>
> This is highly not a good thing. It should be a separate application for
all
> intents and purposes.
>
> Anyone have any ideas?
>
> Thanks,
> James Hancock
>
>