how can i change the image of a picturebox control at runtime when mouse hovers it??
heres my code
so far i have an 'invalid argument' error when calling sender.image=new bitmap()
thanks for your help
heres my code
Visual Basic:
Private Sub hoverDiente(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles d1.MouseHover, d2.MouseHover
sender = CType(sender, PictureBox)
Dim tempStr As String = sender.name
tempStr.Replace("d", "")
MsgBox(Me.path)
sender.Image = New Bitmap(Me.path + "\\path\\" + tempStr + ".jpg")
End Sub
so far i have an 'invalid argument' error when calling sender.image=new bitmap()
thanks for your help