Werner Kraemer

I have a PictureBox in the form. When the mouse cursor is over the PictureBox I plan on reading the x,y coordinate of the cursor in the PictureBox.

I have read some related answers on similar topics and believe that you guys/gals are already discussing the next level. Can someone help to get me over this first step

Thanks

Werner




Re: Visual Basic Language event of hovering cursor over PictureBox

Spidermans_DarkSide

Public Class Form1

'Here is a list of all of the MOUSE related System.EventArgs and

'the System.Windows.Forms.MouseEventArgs.

'Hover is in here too. :-) See the 6th Sub in this list.

 

 

Private Sub PictureBox1_MouseCaptureChanged(ByVal sender As Object, _

ByVal e As System.EventArgs) Handles PictureBox1.MouseCaptureChanged

End Sub

Private Sub PictureBox1_MouseClick(ByVal sender As Object, _

ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseClick

End Sub

Private Sub PictureBox1_MouseDoubleClick(ByVal sender As Object, _

ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDoubleClick

End Sub

Private Sub PictureBox1_MouseDown(ByVal sender As Object, _

ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown

End Sub

Private Sub PictureBox1_MouseEnter(ByVal sender As Object, _

ByVal e As System.EventArgs) Handles PictureBox1.MouseEnter

End Sub

Private Sub PictureBox1_MouseHover(ByVal sender As Object, _

ByVal e As System.EventArgs) Handles PictureBox1.MouseHover

End Sub

Private Sub PictureBox1_MouseLeave(ByVal sender As Object, _

ByVal e As System.EventArgs) Handles PictureBox1.MouseLeave

End Sub

Private Sub PictureBox1_MouseMove(ByVal sender As Object, _

ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove

End Sub

Private Sub PictureBox1_MouseUp(ByVal sender As Object, _

ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseUp

End Sub

Private Sub PictureBox1_MouseWheel(ByVal sender As Object, _

ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseWheel

End Sub

End Class

 

Regards,

S_DS

 






Re: Visual Basic Language event of hovering cursor over PictureBox

ReneeC

Renee shakes her head............

Public Class Form1

Dim PicPoint As Point

Private Sub Form1_Load(ByVal sender As Object, _

ByVal e As System.EventArgs) Handles Me.Load

PictureBox1.LoadAsync("c:\test.png")

End Sub

Private Sub PictureBox1_MouseMove(ByVal sender As Object, _

ByVal e As System.Windows.Forms.MouseEventArgs) _

Handles PictureBox1.MouseMove

PicPoint = e.Location

End Sub

End Class






Re: Visual Basic Language event of hovering cursor over PictureBox

Werner Kraemer

as usual - you guys are good. Thanks for the listing of the events arguments. I'll implement and report back

Thanks

Werner






Re: Visual Basic Language event of hovering cursor over PictureBox

ReneeC

erm... I'm a gal.........






Re: Visual Basic Language event of hovering cursor over PictureBox

Werner Kraemer

Thanks Renee - that was simple and effective

Werner