|
-
Aug 28th, 2006, 09:37 PM
#1
Thread Starter
Lively Member
[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.
-
Aug 28th, 2006, 09:55 PM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|