I have a problem with OnKeyDown
....
#region Using declarations
System.Windows.Forms;
private void OnKeyDown(KeyEventArgs keyEvent)
{
if (keyEvent.KeyCode == Keys.Insert)
{
DrawArrowUp("My up arrow" + CurrentBar, false, 0, 0, Color.Lime);
PlaySound(@"C:\Program Files\NinjaTrader 7\sounds\Alert3.wav");
}
}
is compilated
The last problem is in OnBarUpdate()
keyEvent.KeyCode is not good in OnBarUpdate()
this a problem in preliminary Variable decaration
like ...
private System.Windows.Forms.????? Keypressed = null;
Could you give an exemple ? or a file with OnKeyDown
Thanks
Pierre

Comment