VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Crosshair Mouse

by Rob (4 Submissions)
Category: Games
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (7 Votes)

What i did was Make the Code Much Shorter, Went from 25 Lines of Code, to 9 Lines of code..
ORIGINALY DONE BY: thuggish_187

Assumes
Just Paste it thats all

Rate Crosshair Mouse

Private Sub Form_Load()
 Me.ScaleMode = 3 'Pixel Mode
 Me.MousePointer = 2 'Set Mouse Pointer to Cross
End Sub
Private Sub Form_MouseMove(Button As Integer, _ Shift As Integer, X As Single, Y As Single)
 Cls
 Me.Circle (X, Y), 25 'Draw Circle
 Me.Line (0, Y)-(Me.Width, Y) 
 Me.Line (X, 0)-(X, Me.Height) 
 Me.CurrentX = X + 35
 Me.CurrentY = Y - 25
 Me.Print "X: " & X & " Y: " & Y 
End Sub

Download this snippet    Add to My Saved Code

Crosshair Mouse Comments

No comments have been posted about Crosshair Mouse. Why not be the first to post a comment about Crosshair Mouse.

Post your comment

Subject:
Message:
0/1000 characters