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 we use ajax in asp.net through javaScript. Please givee me an example.

0 Answers  


How to get Dynamically Linked Comboboxes Set?

0 Answers   HCL,


Code for Document Validation in XML.NET?

0 Answers   TCS,


Give coding for Implementing a Fixed GridView Header in ASP.NET?

1 Answers  


How to use Client-side Script to Focus Controls in ASP.NET?

0 Answers  






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

4 Answers  


How to Create Scrollable Micro Windows?

2 Answers  


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

1 Answers   TCS,


how the value of label is printed through a button in asp.net web application

3 Answers  


how to upload an excel in c# ASP.Net?

3 Answers  


how to track links visited in google using iframes

0 Answers  


How to Bind Nested XML to a Repeater Control with Container.DataItem?

0 Answers  


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)