Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2007

Tip: Looking for answers? Try searching our database.

ShowHelp stays on top of my application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lee Grissom - 29 Aug 2007 22:26 GMT
I passed in null as the control argument to Help.ShowHelp() method.  
However, using .NET Reflector I can see that method detects null and
converts it to the ActiveWindow handle.  This has a very undesireable
effect of making my chm help file always appear on top of my
application.  I want the help document to appear like a stand-alone
application so that my end users aren't bothered by it.

So... I thought I'd be clever and attempt to get the "Desktop" as a
Control and pass that to the ShowHelp() method, but I don't know how to
do that.  Sure, I can call the native function "GetDesktopWindow()" and
get back an IntPtr, but that's not good enough.  So, I'm back at my
original problem.  I'm leaning towards using Process class to manually
launch the chm file, but I wanted to see if someone had a more elegant
solution.  Thanks.
--
Lee
Lee Grissom - 29 Aug 2007 23:22 GMT
Lee Grissom pretended :
> I passed in null as the control argument to Help.ShowHelp() method.  However,
> using .NET Reflector I can see that method detects null and converts it to
> the ActiveWindow handle.  This has a very undesireable effect of making my
> chm help file always appear on top of my application.  I want the help
> document to appear like a stand-alone application so that my end users aren't
> bothered by it.

This seems to be a good solution to the problem:
http://support.microsoft.com/kb/317406

--
Lee

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.