When I click the Help menu, the help.pdf file must be displayed. How can I do that.
I did the following but don't know how to proceed.
- Click the little arrow next to the Add button and select Add As Link
Can you help me please to complete this procedure, or suggest another one.

FroglegRank #1,020 · 1.9K reputationPosted Nov 6, 2013, 1:16 AM EST
Look under "control events" in the pdf I uploaded
FroglegRank #1,020 · 1.9K reputationPosted Nov 5, 2013, 9:22 AM EST
using System.Diagnostics;
Process.Start(@"C:\your folder\your.pdf");
Rano AH125 reputationPosted Nov 5, 2013, 7:15 PM EST
But what about F1? if I hit F1 key, then the help file will be opened.
FroglegRank #1,020 · 1.9K reputationPosted Nov 5, 2013, 9:20 PM EST
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F1)
{
Process.Start(@"C:\your folder\your.pdf");
}
}
Ensure keypreview is true in form properties
Rano AH125 reputationPosted Nov 5, 2013, 10:31 PM EST
It's giving me an error. Saying that System.EventArgs does not contain a definition for "KeyCode". Did I miss a directive or assembly reference.
I used the following:
using System.Windows.Forms.Keys;
using System.Diagnostics;
and I set the keypreview to true in form properties
FroglegRank #1,020 · 1.9K reputationPosted Nov 5, 2013, 11:10 PM EST
Rano AH125 reputationPosted Nov 6, 2013, 12:07 AM EST
But I still get KeyChar, instead of keyCode, and I tried this, is this correct? because when I hit F it doesn't open the pdf file.
if(e.KeyChar == (char)Keys.F1)
{
(@"C:\Myfolder\myPDF.pdf");
}
Rano AH125 reputationPosted Nov 6, 2013, 1:27 AM EST