Hi all,
I've gotten the drag and drop to work in my listviewbox with some help. I'm not trying to get a file to show in the listviewbox when somebody selects the file from the open file dialog box I've made. I've been able to successfully show the file in the listviewbox when they select it, but I'm not sure how to get them into their respective columns. I want them to be able to select a file (.mp3) and have the song name under the 'Title' column and the file's location under the 'Location' column. I've gotten this to work if they drag and drop the file into the listbox, but not if they select it from the openfialdialog box. Here's my code:
private void openToolStripMenuItem_Click(object sender, EventArgs e)
{
string openFd = "";
openFileDialog1.ShowDialog();
if (openFileDialog1.ShowDialog() != DialogResult.Cancel)
{
openFd = openFileDialog1.FileName;
listView1.Items.Add(openFd);
}
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
Application.Exit();
}
Thanks.