By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,333 Members | 1,060 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,333 IT Pros & Developers. It's quick & easy.

Help file search request

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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.

Nov 21 '05 #2

P: n/a
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.

Nov 21 '05 #3

P: n/a
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,H elpNavigator.KeywordIndex
);
this.helpProvider1.SetHelpKeyword(this.button1,thi s.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.

Nov 21 '05 #4

P: n/a
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

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,H elpNavigator.KeywordIndex );
this.helpProvider1.SetHelpKeyword(this.button1,thi s.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.

Nov 21 '05 #5

P: n/a
thanks

""Peter Huang"" <v-******@online.microsoft.com> wrote in message
news:kD**************@cpmsftngxa10.phx.gbl...
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,H elpNavigator.KeywordIndex
);
this.helpProvider1.SetHelpKeyword(this.button1,thi s.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.

Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.