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 to get Dynamically Linked Comboboxes Set?

0 Answers   HCL,


what is software testing

1 Answers   TCS,


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

4 Answers  


Data Reader Vs DataSet

5 Answers   TCS,


Coding for .NET Delegates?

0 Answers  






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

3 Answers  


how to track links visited in google using iframes

0 Answers  


ArrayList declaration in .net

0 Answers  


How to add checkbox to datagrid?

5 Answers  


How to integrate the regional language in asp.net and c# like Telugu, Hindi etc,. send a sample program

3 Answers   Concept, NIIT, Wipro,


Code for Presenting Parent/Child Data in a Data Grid Row?

0 Answers   TCS,


Listview design in .net

1 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)