[2005] How to automatically select a file in a listview when it's opened
I have a mp3 player and have my btnPlay setup to play the selected item.text and it works. My problem is that when I open some songs in the listview from my openfiledialog that the first one in the list gets selected then btnPlay.performclick and play the song. If there's another way to do it i'd like to know that one to if possible hopefully somebody can help me.
Re: [2005] How to automatically select a file in a listview when it's opened
The button click is irrelevant. The code inside the button's Click event handler is the code that palys the song. You can take that code out of the event handler and put it in its own method, then call that method from wherever you want to to play the song.