Dim dragging As Boolean
Dim imgcount As Long
Private Sub Form_Load()
List1.AddItem "aaa"
List1.AddItem "bbb"
End Sub
Private Sub Frame1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If dragging = True Then
MsgBox List1.List(List1.ListIndex) & " dragged!"
imgcount = imgcount + 1
Frame1.Caption = imgcount
List1.Enabled = True
End If
End Sub
Private Sub List1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
dragging = False
If List1.ListIndex <> -1 And List1.ListCount > 0 Then
List1.Enabled = False
dragging = True
Form1.MousePointer = 2
End If
End Sub
Сейчас этот форум просматривают: Google-бот и гости: 41