qmp Posted May 23, 2005 Posted May 23, 2005 Instead of having the user have to hit F1, what if I want them to hit a button and open invoke the help provider... I'm not talking about just executing the chm process to open up a seperate chm process, I want to invoke it on the help providers process so if a user hits F1 on a different form, the same chm window is used. How do I go about doing this? Quote
Shurikn Posted May 30, 2005 Posted May 30, 2005 i did this recently, but it was in c++ but it should look aproximatively the same in other languages. you've got to use the objet help : Help::ShowHelp() but i dont remember what arguments it need. I thing you need to pass it your helpProvider object. i'll check up later Quote
*Experts* DiverDan Posted May 31, 2005 *Experts* Posted May 31, 2005 I don't know if this is what you are looking for but here are some examples in VB.Net: Help.ShowHelp(Me, Application.StartupPath & "\HelpFile.chm", HelpNavigator.TableOfContents) Help.ShowHelp(Me, Application.StartupPath & "\HelpFile.chm", HelpNavigator.KeywordIndex) Help.ShowHelp(Me, Application.StartupPath & "\HelpFile.chm", HelpNavigator.Topic, "SpecificTopicPage.htm") Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
qmp Posted May 31, 2005 Author Posted May 31, 2005 Help.ShowHelp is exactly what I ended up going with... And for forms that you want to stick a simple help button on, where a user clicks it and it opens up the help you can do a sendkeys command with the F1 key as a parameter and it will invoke the help provider if you have one defined. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.