How to Snap the Cursor to a Button?



How to Snap the Cursor to a Button?..

Answer / paul z

It will depend on what computer language you are using. The mouse pointer will have coordinates and so will the button position. So pass the button position to the mouse position, plus some to be in the middle of the button (e.g. plus half the button width and height)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Code Interview Questions

how can we close a web page in asp.net without using jscript?

4 Answers  


how to convert Dataset to Object Array or list in c# .net

4 Answers  


How we implement the paypal in my website and how we make a payment through Credit Card.

2 Answers  


How to add checkbox to datagrid?

5 Answers  


Code for Creating a Form Using PlaceHolder Controls?

1 Answers   Arena, JSA,


Code for Sending E-Mail with System.Web.Mail?

2 Answers  


How to send e-mail from an ASP.NET application?

16 Answers   DataPoint, Infosys, Persistent, Radar, TCS, Wipro,


HOw to Build a Nested GridView Control with ASP.NET?

2 Answers  


How to get the row index on checking a Checkbox in a ListView

1 Answers  


how to track links visited in google using iframes

1 Answers  


how to create a search bar which access data from various websites and retrieves the data

1 Answers  


where is assembly are store

5 Answers   C DAC,


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)