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

Code for Creating a Form Using PlaceHolder Controls?

0 Answers   Arena, JSA,


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

1 Answers   TCS,


Code for Getting Information About A File?

1 Answers  


How to Snap the Cursor to a Button?

1 Answers  


What is the code of Password Recovery or Forget your password? Plz tell in c # language.

0 Answers  






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

4 Answers  


i have a gird with columns all are coming from database,this will bind in item templete in gridview as textboxex.and i have button below named Update.i want to update all the records in the grid,but if user change the value of one textbox,what is the easy way 2 do this

0 Answers   Crompton Greaves,


working with fileUpload ?

1 Answers  


hold checkbox values

4 Answers  


where is assembly are store

5 Answers   C DAC,


Code for Communicating over Sockets?

0 Answers  


How we use ajax in asp.net through javaScript. Please givee me an example.

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)