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.
FroglegPosted Nov 6, 2013, 6:16 AM
Look under "control events" in the pdf I uploaded
Rano AHPosted Nov 6, 2013, 6:27 AM
Rano AHPosted Nov 6, 2013, 5:07 AM
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");
}
FroglegPosted Nov 6, 2013, 4:10 AM
Rano AHPosted Nov 6, 2013, 3:31 AM
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
FroglegPosted Nov 6, 2013, 2:20 AM
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 AHPosted Nov 6, 2013, 12:15 AM
But what about F1? if I hit F1 key, then the help file will be opened.
FroglegPosted Nov 5, 2013, 2:22 PM
using System.Diagnostics;
Process.Start(@"C:\your folder\your.pdf");