Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Hi, I am making a game (a shooting game)

i want the mouse to be a crosshair.

I have tried making the picturebox follow the mouse like this:

 

Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
       PictureBox1.Location = MousePosition
   End Sub

 

but the crosshair does not follow the mouse exactly (the crosshair is about 4cm away from cursor???) :confused: :confused: :confused:

Anyone got any Ideas?

Edited by BrettW
  • Leaders
Posted

Do you need a particularly specific graphic? Windows includes a crosshair cursor by default, which you could specify as the contianing control's cursor.

 

 

someControl.Cursor = Cursors.Cross;

[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...