Lior
Jan 20th, 2000, 02:21 AM
Hello...
I need to drag and drop a picture box that is declared as a cell in a picture box control array. I can drag a picture box ONLY if its not in an array. i do it using this piece of code:
Option Explicit
Public globalX As Integer
Public globalY As Integer
Private Sub Form_DragDrop(Source As Control, X As _Single, Y As Single)
Picture1.Move X - globalX, Y - globalY
End Sub
Private Sub
Picture1_MouseDown(Button As Integer, _Shift As Integer, X As Single, Y As Single)
Picture1.Drag vbBeginDrag
globalX = X
globalY = Y
End Sub
What are the proper changes i should do so this code will work with a picture box array too?
Thanks again,
Waiting for your answer,
An israeli programmer.
------------------
------
God:
------
Oh...those israeli programmers..!
I need to drag and drop a picture box that is declared as a cell in a picture box control array. I can drag a picture box ONLY if its not in an array. i do it using this piece of code:
Option Explicit
Public globalX As Integer
Public globalY As Integer
Private Sub Form_DragDrop(Source As Control, X As _Single, Y As Single)
Picture1.Move X - globalX, Y - globalY
End Sub
Private Sub
Picture1_MouseDown(Button As Integer, _Shift As Integer, X As Single, Y As Single)
Picture1.Drag vbBeginDrag
globalX = X
globalY = Y
End Sub
What are the proper changes i should do so this code will work with a picture box array too?
Thanks again,
Waiting for your answer,
An israeli programmer.
------------------
------
God:
------
Oh...those israeli programmers..!