Hey leute
Ich arbeite an einer Drag and Drop Funktion mit einer Listview.
Folgene Problem wie Kriege ich den item gelöscht. mit meiner Methode funktioniert das nicht. Bitte um Hilfe.
Danke im voraus MFG
Ich arbeite an einer Drag and Drop Funktion mit einer Listview.
Folgene Problem wie Kriege ich den item gelöscht. mit meiner Methode funktioniert das nicht. Bitte um Hilfe.
Danke im voraus MFG
VB.NET-Quellcode
- Try
- Dim StrTemp As String = ""
- Dim MyItemsCount As Integer = 0
- MyItemsCount = 0
- If ListView1.Items.Count = 0 Then
- MyItemsCount = 1
- End If
- If m_BinMousDown = True Then
- For Each Item As ListViewItem In ListView1.SelectedItems
- Dim FileInfo As New FileInfo(Item.Text)
- Dim Eintrag = PapertosListView.Items.Add(FileInfo.Name)
- Eintrag.ImageIndex = ImageList1.Images.Count = 0
- StrTemp = Item.SubItems(2).Text
- Item.Remove()
- Next
- PapertosListView.DoDragDrop(StrTemp, DragDropEffects.Copy)
- m_BinMousDown = False
- End If
- Catch ex As Exception
- End Try