Hi,
I am a VB beginner
I have a problem with the following code which only once drops the pic at the coordinate I klicked. On my next klick the previous picture disappears. However I want the pictures permanetly stay at their coordinates as long as I go on klicking the same picture.
Can anybody help me for the correct code?
Thx.
Ugur Önen
[CODE=vbnet]
Private Sub PictureBox1_Mou seDown(ByVal sender As Object, ByVal_
e As System.Windows. Forms.MouseEven tArgs)Handles PictureBox1.Mou seDown
Dim xPos As Integer
Dim yPos As Integer
If e.Button = MouseButtons.Le ft Then
xPos = e.X : yPos = e.Y
End If
PicPad.Left = e.X + 155
PicPad.Top = e.Y + 59
End Sub
[/CODE]
I am a VB beginner
I have a problem with the following code which only once drops the pic at the coordinate I klicked. On my next klick the previous picture disappears. However I want the pictures permanetly stay at their coordinates as long as I go on klicking the same picture.
Can anybody help me for the correct code?
Thx.
Ugur Önen
[CODE=vbnet]
Private Sub PictureBox1_Mou seDown(ByVal sender As Object, ByVal_
e As System.Windows. Forms.MouseEven tArgs)Handles PictureBox1.Mou seDown
Dim xPos As Integer
Dim yPos As Integer
If e.Button = MouseButtons.Le ft Then
xPos = e.X : yPos = e.Y
End If
PicPad.Left = e.X + 155
PicPad.Top = e.Y + 59
End Sub
[/CODE]
Comment