Hi all,
I have built a MDI application with 15 child forms. I created the HTML help files in the HTML workshop and compiled the help file. I also created context sensitive help in the compiled help file, and assigned the topic ID to each form's HelpContextID property. In the Form_Load event of the MDI parent form, I inserted this code App.HelpFile = App.Path & "\MyApp_Help.chm". So far I think I have been following the correct steps, and I checked for this topic in the forums and I think I am okay in this preparation.
Ok, here is the weird part. I have one form that is the kind of "main" form where data entry occurs. When I press F1 when this form has focus, the HTML help loads with the correct html page loaded. This also works with my menu command with SendKeys "{F1}" in the menubar on this form as well. If I close this form, then either give focus to another already open form or open a different new form and press F1, nothing happens. In addition, I am testing SendKeys "{F1}" coded in the menubar on only one other form, and when I select that menu item with the SendKeys behind it, my app hangs. I have to do Ctrl-Alt-Delete to kill it, then close VB so that I can work with it.
One other bit of information. Before I added the context sensitive information to all forms and to the compiled .chm file, I first tested the help system. The two forms I mentioned above (the main form, and the form that causes the app to hang when selecting the menubar Help that has SendKeys "{F1}" worked fine loading the default html file and loaded the HTML Help each time.
Does anyone have any idea as to why this is happening?
Thanks,
Rob
I have built a MDI application with 15 child forms. I created the HTML help files in the HTML workshop and compiled the help file. I also created context sensitive help in the compiled help file, and assigned the topic ID to each form's HelpContextID property. In the Form_Load event of the MDI parent form, I inserted this code App.HelpFile = App.Path & "\MyApp_Help.chm". So far I think I have been following the correct steps, and I checked for this topic in the forums and I think I am okay in this preparation.
Ok, here is the weird part. I have one form that is the kind of "main" form where data entry occurs. When I press F1 when this form has focus, the HTML help loads with the correct html page loaded. This also works with my menu command with SendKeys "{F1}" in the menubar on this form as well. If I close this form, then either give focus to another already open form or open a different new form and press F1, nothing happens. In addition, I am testing SendKeys "{F1}" coded in the menubar on only one other form, and when I select that menu item with the SendKeys behind it, my app hangs. I have to do Ctrl-Alt-Delete to kill it, then close VB so that I can work with it.
One other bit of information. Before I added the context sensitive information to all forms and to the compiled .chm file, I first tested the help system. The two forms I mentioned above (the main form, and the form that causes the app to hang when selecting the menubar Help that has SendKeys "{F1}" worked fine loading the default html file and loaded the HTML Help each time.
Does anyone have any idea as to why this is happening?
Thanks,
Rob