here is how I invoked it...
privatevoid OnKeyDown(object sender, KeyEventArgs e)
{
if( e.KeyCode == Keys.F5 && e.Control )
{
if (lastCtrlF5.AddMilliseconds(refreash_delay) < DateTime.Now){
lastCtrlF5 = DateTime.Now;
Print ("Reset Data 5 ");
ChartControl.ParentForm.Activate();
//SendKeys.SendWait("{F5}"); // does not work
//SendKeys.SendWait("^+R"); // this worked
SendKeys.SendWait( Keys.F5.ToString()); // does not work
}
}
}
Comment