I am working with Example 5 in the Sharp GL package.
I like being able to move the image around with the mouse. But I would like to have the sceneControl1 form detect a mouse click event and do something...display a message box would be fine
Below is an example of the code I could see demonstrating this functionality.
private void OnMouseClick(MouseEventArgs e)
void my_mouseclick(MouseEventArgs e)
int x = SceneControl.MousePosition.X;
int y = SceneControl.MousePosition.Y;
MessageBox.Show("Mouse Click Event:" + y.ToString() + " " + x.ToString());
This code works well on the form that the sceneControl1 is embedded on but it does not work on the control itself.
Any help is appreciated.