Posted by: Pdfprep
Post Date: March 2, 2021
You work as a Software Developer for InfoTech Inc. You create a Windows form in a Windows-based application named MyWinApp1. You use graphics in the form.
You write the following code in your form:
private void MyMouseEvent1(object sender1, MouseEventArgs event)
{
// Code to handle mouse events
}
You want to implement a property of the MouseEventArgs object. This property will return a Point structure that contains the x-coordinate and y-coordinate of the mouse.
Which of the following properties of the MouseEventArgs object will you use to accomplish this?
A . Y
B . Location
C . Button
D . X
E . Delta
F . Clicks
Answer: B