VB.NET - Stop multiple RoboHelp windows from opening

Asked By Henry Taylor on 22-Jun-12 10:52 AM
Earn up to 30 extra points for answering this tough question.
This is a vb.net framework 4 vs2010 winform project.

We are using .CHM files for help generated with RoboHelp.

I have a textbox inside another control such as a Tab control and of course the Tab control is on a form.  If I have a HelpContextID for the Textbox it shows the Help correctly.

The help for all the controls on the Tab control are the same so I don't want to have to set the HelpContextID for each control.  Instead I want to set the HelpContextID on the Tab control (Container) then in code if my HelpContextID  = 0 for a control I will access the control Container HelpContextID and use it.

In other words bubble out until I find a HelpContextID > 0 then call ShowHelp().

It works fine but two Help windows open - one with the Help I want and the one with the top most level of help for the application. I am only making the call for ShowHelp() once.

Does any one know why this happens?

Thanks.



[)ia6l0 iii replied to Henry Taylor on 22-Jun-12 11:07 PM
Posting the followup notes posted by the same author on the other thread.

Asked By Henry Taylor in VB.NET on 22-Jun-12 03:39 PM
On further testing I can refine exactly what is happening - sorry I couldn't Edit the previous post.

If I assign a ContextID to a control in a container with the same ContextID  I get two windows with the same Help info.

If I only assign the conatiner the ContextID then I get a Help window with the correct Help info but I then get a second window with the Help root info.

I have enabled stops where the Help calls are made and followed it all the way through to make sure the code isn't some how firing twice and it does not.
[)ia6l0 iii replied to [)ia6l0 iii on 22-Jun-12 11:13 PM
The method stub in which the ShowHelp method is invoked is definetely called twice. You would need to degug and examine the stack trace. And when you are calling the ShowHelp method, ensure that you pass the right contextid. The fallback mechanism for the Showhelp method could be to show the default window. 

Henry Taylor replied to [)ia6l0 iii on 02-Jul-12 04:47 PM
What I described above is not the steps that reproduce this.  Sorry for the confusion.

I have a form with 4 controls on it.  3 are normal combo boxes  - the Help works fine for these.

The 4th control is a user control.  The user control is a simple textbox with code attached that restricts and validates input.

When I put my cursor on one of the combo boxes and hit the F1 key to get Help the help window appears.  If it put the cursor on a different combo box and hit the F1 key the proper Help shows in the same window opened by the first request for help.  This is as expected.

If I then put my cursor on the user control and hit the F1 key a new Help window opens.  Now I have 2 Help windows - NOT what we want.  The help should only ever have 1 window open.

I went through the stack trace and it is 
Definitely NOT getting called twice.  In fact for this control if I put a break on the call to Help.ShowHelp() and then skip 1 Help window still shows!  I cannot find how it is doing it.  It is maddening.
help
I am trying to integrate a RoboHelp Windows Help file into my VB.Net Windows application using the Help Provider (VS2005). Does anyone have any experience with this that can can't get it to open to a specific topic. TIA .NET Discussions VB (1) RoboHelp (1) WinHelp (1) Windows (1) VS2005 (1) CHM (1) released on Tue, 13 Nov 2007 08:47:00 -0800 bearing the following fruit to work since posting this, but by using some API calls from a sample from RoboHelp. It appears to me that that stuff is dated; like VS2002. I was hoping that
Hi, gibt es einen unter .NET ??blichen Weg zur Erstellung einer Hilfe f??r eine Windows Forms Anwendung (.NET 3.5)? Praktisch w??re es, wenn der Kunde die Hilfe selber nnte. Viele Gr????e Christian C# - German Discussions Help Workshop (1) Visual Studio (1) System.Windows.Forms (1) Feedback.Viele (1) Control (1) DocToHelp (1) Download (1) ISVs (1) Es gibt etliche 3rd Party Anbieter (DocToHelp, RoboHelp) oder auch Sandcastle von Microsoft. Siehe dazu auch diese Diskussionen: [Online-Hilfe erstellen?] http: / / groups de.german.entwickler.dotnet.vstudio / browse_frm / thread / 5e3703a7165923b3 / 3dd6f13c6f322dd7 Als Ausgabeformat wird i.d.R. CHM gew??hlt, auch bekannt als HTML Help 1.0. Die kann man direkt einbetten: [Help Class] http: / / msdn.microsoft.com / en-us / library / system.windows.forms.help.aspx Dazu ist mir kein Verfahren bekannt. Die Visual Studio Hilfe ist quasi Beispiel, wenn Du dem Kunden das Help-Project zur Verf??gung stellst und er die CHM-Datei selber erstellt. Es sollte dann nat??rlich schon dementsprechend vorbereitet sein, damit ein einfaches 9aa0-d597d16580cc die Aktionen l??sst Du ??ber den HelpProvider ausf??hren: [HelpProvider-Klasse (System.Windows.Forms)] http: / / msdn.microsoft.com / de-de / library / system.windows.forms.helpprovider.aspx [Help-Klasse (System.Windows.Forms)] http: / / msdn.microsoft.com / de-de / library
sollten .htm Dateien sein. Sind aber die HTML-Dateien der letzte Schrei? Wenn ich im Windows Download-Center nach dem HTML Help Workshop schaue, finde ich die angeblich neueste Version mit stellen oder wo kann dieses Programm noch bezogen werden!? Besten Dank Peter VB - German Discussions Windows XP (1) Visual Studio 2005 (1) Visual Studio (1) Help Workshop (1) Windows 7 (1) Office (1) Vista (1) XP (1) .hlp-Dateien werden zwar seit Vista nicht aber eigentlich eher die Ausnahme von der Regel. Immerhin funktionieren immer noch CP / M unter Windows . . . zumindest theoretisch (AFAIR ist es nahezu unmoeglich die heutigen Rechner so langsam zu bekommen, dass in neuen Projekten zu nutzen wuerde ich vermeiden. JM2C Ingo Hallo Peter, Das sind eher *.chm Dateien. HTML ist nat?rlich aktuell und hat auch Zukunft. Das sind aber mehrere Dateien usw. Die kannst du entweder einzeln verwenden, oder halt in einer *.chm zusammenfassen. Der erstellt ja auch "nur chm Dateien, die funktionieren auch unter Win7 einwandfrei. Es gibt auch andere Tools, aber andere Formate w?rde ich nicht verwenden, da *chm ja Standard ist. Reines HTML geht zwar auch da ja heutzutage so gut wie jeder
up Office I'm not at all sure what to do here. When I run windows update, the junk mail filter KB936677 for Outlook 2003 keeps on coming up time after bytes) OUTLFLTR.DLL 1.4.3504.0 300 KB (307, 440 bytes) I'm running Windows XP / sp2 and office 2003 / sp3 and searching around the web, there's other with IE7, I choose not to install yet) have installed without a hitch, that's both Windows and Office. Even this (KB936677) update appears to have installed, giving the following message: 'The 2007 23:43:50 Build type: SHIP UNICODE 3.01.4000.4039 Calling process: C: \ WINDOWS \ system32 \ msiexec.exe = = = MSI (c) (2C:F4) [23:43:50:122]: Resetting cached policy values End dialog not enabled MSI (s) (18:A4) [23:43:51:413]: Original package = = > C: \ WINDOWS \ Installer \ 2ff58.msi MSI (s) (18:A4) [23:43:51:423]: Package we're running from = = > C: \ WINDOWS \ Installer \ 2ff58.msi MSI (s) (18:A4) [23:43:51:554]: APPCOMPAT: looking for appcompat copy from system32 MSI (s) (18:A4) [23:43:51:634]: Opening existing patch 'C: \ WINDOWS \ Installer \ 38c3c4.msp'. MSI (s) (18:A4) [23:43:53:767]: Opening existing patch 'C: \ WINDOWS \ Installer \ 461cb63.msp'. MSI (s) (18:A4) [23:43:54:528]: Opening existing patch 'C
Windows installer 3.1 & IE7 fails to install Windows 7 3 weeks ago I upgraded my motherboard, processor, RAM & display card. Since I can't clean install a new windows XP cause my old system has all needed programs & settings to my needs (very hard I used to option of repair install, inserted the XP CD that gave me "upgrading windows", & all went OK, new drivers installed, removed old ones. Funny thing is my IE7 is goes till the point where registry editing starts & stops installation & rolls back changes to IE6 & windows restarts. . Same when I try to update Windows installer to 3.1, it stops installation at the point or registry changing & rolls back account, how come? Why both installation stops at the registery editing point? Any help? thanks Windows Update Discussions DontRemoveOnUninstall.System32.DirId (1) ProductInstall.GlobalRegistryChanges.Install (1) Windows XP (1) Internet Explorer 7 (1) Windows Installer (1) Windows Update (1) IsRebootRequiredForFileQueue (1) ProcessesToRunAfterReboot
how do you setup the email account for windows? Windows Vista Mail Discussions Windows Vista (1) Windows Vista Windows Mail (1) Volunteer J Microsoft (1) Windows Vista fabian allen (1) Volunteer Solutions (1) Mail service provider (1) Email program (1) = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Windows
I have just built an image to install XPSP2 on Dell Optiplexes 745, 620 BrandIEUsingUnattended = Yes [Proxy] Proxy_Enable = 0 Use_Same_Proxy = 0 [Sysprep] BuildMassStorageSection = Yes [SysprepMassStorage] pci \ ven_8086&dev_244e = c: \ windows \ inf \ machine.inf pci \ ven_8086&dev_2448 = c: \ windows \ inf \ machine.inf *int0800 = c: \ windows \ inf \ machine.inf pci \ ven_8086&dev_0008 = c: \ windows \ inf \ machine.inf pci \ ven_8086&dev_0326 = c: \ windows \ inf \ machine.inf pci \ ven_8086&dev_0327 = c windows \ inf \ machine.inf pci \ ven_8086&dev_0329 = c: \ windows \ inf \ machine.inf pci \ ven_8086&dev_032a = c: \ windows \ inf \ machine.inf pci \ ven_8086&dev_0482 = c
Hello dear fellows! I have got Windows Media Center which is fantastic and so forth. Now, I'm in trouble updating to Thanks, Steve Does know what's going on? Visit: http: / / www.mdcc.de / rhythm.university / Windows Media Center Discussions Windows (1) System (1) Kopierte (1) Datei (1) SET (1) Source (1) Destination (1) Ehome (1 What error(s) are you seeing? The contents of KB900325.log in your Windows directory should give you / us some clues. - - Gary Tsang http: / / www.gtsang.com Microsoft MVP - Windows Media Center http: / / www.microsoft.com / mvp Some requirement are not met to install the we knew what the error message is. - - Gary Tsang http: / / www.gtsang.com Microsoft MVP - Windows Media Center http: / / www.microsoft.com / mvp Hi, Thanks again. The message is in german succeeded for section PreReq.SingleOp.MediaCenter in Line 1 of PreRequisite 0.422: SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Media Center \ Ident is Not Equal To Specified Value 0.422: Condition Check for
Since there is no In Place upgrade of Windows XP to Windows 7, I am thinking of upgrading Windows XP to Windows Vista and then Windows Vista to Windows 7, in part because Newegg has a good