如果有人将Spotify轨迹从spotify桌面应用程序拖放到Excel,则Excel会显示歌曲的艺术家和标题.
我有一个winforms应用程序,我想在其中做同样的事情.如果我拖放到这样的列表框....
Private Sub ListBox1_DragEnter(sender As Object, e As DragEventArgs) Handles ListBox1.DragEnter
ListBox1.Items.Add(e.Data.GetData(DataFormats.Text))
End sub
Run Code Online (Sandbox Code Playgroud)
....所有它曾经做过,是显示spotify轨道ID.由于Excel不是为读取Spotify网址而设计的,因此数据必须位于拖放中.但无论我选择哪种数据格式,我都只能获得ID.