Mouse event not firing


https://www.nevron.com/Forum/Topic14266.aspx
Print Topic | Close Window

By Darren Woodhouse - 3 Years Ago
OnLoad conatins
nChartControl1.KeyPress += OnKeyPress;

and OnKeyPress()

is never invoked!
By Nevron Support - 3 Years Ago
Hi Darren,

We just tested this with the latest version and it was working:

nChartControl1.KeyPress += NChartControl1_KeyPress;
nChartControl1.Focus();

private void NChartControl1_KeyPress(object sender, KeyPressEventArgs e)
{
throw new NotImplementedException();
}

Please note that the control must have the input focus to receive this event just like any WinForm control. 

We hope this helps - let us know if you have any questions.