How can I get the information, if a mousebutton is pressed, while the runtime is starting?
I would like to implement a service menu for pc runtime similiar to the panels.
I need to calibrate a new monitor. In the OnLoad Event of the startup page I would like to do
if ( MouseButtons == MouseButtons.Left)
{
}
Greetings Chris
Monitor calibration on PC runtime
Re: Monitor calibration on PC runtime
You can capture a mouse click by hooking up the MouseDown event and the MousePosition.X and MousePostion.Y properties.
Code: Select all
void Screen2_Opened(System.Object sender, System.EventArgs e)
{
MouseDown+= myMouseClick;
}
void myMouseClick(System.Object sender, System.Windows.Forms.MouseEventArgs e)
{
MessageBox.Show(MousePosition.X+","+ MousePosition.Y);
}
void Screen2_Closed(System.Object sender, System.EventArgs e)
{
MouseDown-= myMouseClick;
}
Best regards,
Russ
(801) 708-6690
Technical Support
Contact Us
Beijer Electronics AB
http://www.beijerelectronics.us
Russ
(801) 708-6690
Technical Support
Contact Us
Beijer Electronics AB
http://www.beijerelectronics.us