vb.net图片怎么移动,像window自带的照片查看器一样?
vb.net吧
全部回复
仅看楼主
level 9
1johnn 楼主
Private Sub PictureBox1_MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseWheel
If e.Delta > 0 Then
PictureBox1.Width -= 20
PictureBox1.Height -= 20
Else
PictureBox1.Width += 20
PictureBox1.Height += 20
End If
End Sub
Private Sub PictureBox1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
If e.Button = Windows.Forms.MouseButtons.Left Then
Windows.Forms.Cursor.Current = Cursors.Hand
PictureBox1.Location = New System.Drawing.Point(e.X, e.Y)
图片移动效果不行,有没有什么方法解决。
End If
End Sub
2012年12月06日 08点12分 1
level 9
1johnn 楼主
[瀑布汗~]帮帮忙啊
2012年12月07日 12点12分 2
1