Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Form_Load()
List1.AddItem "one"
List1.AddItem "two"
List1.AddItem "three"
End Sub
Private Sub List1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton And List1.ListIndex >= 0 Then
Label1.Caption = List1.List(List1.ListIndex)
Label1.Move List1.Left + X, List1.Top + Y, TextWidth(List1.List(List1.ListIndex)), TextHeight("A")
Label1.Drag
End If
End Sub
Private Sub List2_DragDrop(Source As Control, X As Single, Y As Single)
If TypeName(Source) = "Label" Then
List2.AddItem Source.Caption
List1.RemoveItem (List1.ListIndex)
End If
End Sub
Private Sub List2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton And List2.ListIndex >= 0 Then
Label1.Caption = List2.List(List2.ListIndex)
Label1.Move List2.Left + X, List2.Top + Y, TextWidth(List2.List(List2.ListIndex)), TextHeight("A")
Label1.Drag
End If
End Sub
Private Sub List1_DragDrop(Source As Control, X As Single, Y As Single)
If TypeName(Source) = "Label" Then
List1.AddItem Source.Caption
List2.RemoveItem (List2.ListIndex)
End If
End Sub