dragdrop .csv files issue
Posted: Wed Dec 20, 2023 9:17 am
Hi,
I'd like to dragdrop a batch of csv files over the teechart to plot their contents.
Unfortunately, I don't succed in doing the drag drop operation.
Here my code :
At the end, the file_list string array is empty...
Changing the DragDropEffects.All to DragDropEffects.Copy won't change anything.
What's going wrong ?
Thanks
Sharkann
I'd like to dragdrop a batch of csv files over the teechart to plot their contents.
Unfortunately, I don't succed in doing the drag drop operation.
Here my code :
Code: Select all
Private Sub TChart1_DragEnter(sender As Object, e As DragEventArgs) Handles TChart1.DragEnter
e.Effect = DragDropEffects.All
End Sub
Private Sub TChart1_DragDrop(sender As Object, e As DragEventArgs) Handles TChart1.DragDrop
If e.Data.GetDataPresent(DataFormats.FileDrop) Then
file_list = e.Data.GetData(DataFormats.FileDrop)
End If
e.Effect = Nothing
End Sub
Changing the DragDropEffects.All to DragDropEffects.Copy won't change anything.
What's going wrong ?
Thanks
Sharkann