Help file search request

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

If i have a text box and want to input a text string into it then use my
help files search to look for the inputted text from the application how
would i do that? thanks
 
Hi Brian,

Do you mean a chm help file or a vs.net integrated type of help file?
I am researching the issue, and I will update you with new information ASAP.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Brian,

Now I am still researching the issue, I will update you with new
information ASAP.

Thank you for you patience.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Brian,

I think we can try to use the helpProvider class to do the job.

private void Form1_Load(object sender, System.EventArgs e)
{
this.helpProvider1.HelpNamespace = "c:\\windows\\help\\calc.chm";
}

private void button1_Click(object sender, System.EventArgs e)
{

this.helpProvider1.SetHelpNavigator(this.button1,HelpNavigator.KeywordIndex
);
this.helpProvider1.SetHelpKeyword(this.button1,this.textBox1.Text);
this.helpProvider1.SetShowHelp(button1,true);
}

After we run the code and click the button1, the focus will be on the
button, and now if we press F1, the help file will be invoked and search
for the keyword in the help file.
To do this promatically, we may try to sendmessage F1 to do the job.

If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Peter,

Your code is very easy to translate for non Newbies, however for the last I
think it should be VBNet code, that is good when Newbies are searching for
this problem in this newsgroup.

I point your attention on it, because I think that you did send this message
from an indirect resource and did not notice that.

(I almost translated it myself, however I think that that is not right)

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top