Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

Make an Object Follow The Mouse/Cursor on Form

Hi,

I am wondering if there is an easier way to have my 'PictureBox1' object follow the mouse wherever it goes without using Timer intervals.

I used a Timer, but it lagged a lot, even when I set it to one millisecond interval. Is there any way I can make the picturebox just 'stick' the the cursor?

I used Cursor.Position.X and Cursor.Position.Y with the timer.
0
mikel4
Asked:
mikel4
1 Solution
 
centsiCommented:
Use the MouseMove event of the main form which contains the picturebox.
0
 
Bob LearnedCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by centsi

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer
0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now