Results 1 to 3 of 3

Thread: dblclick

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    15

    dblclick

    on my mp3 player i have a playlist named lstplay
    and my dialog is cmd1
    and my mediaplayer is mp1

    Code:
    Private Sub lstplay_DblClick()
    mp1.FileName = lstplay.Text
    Label1.Caption = lstplay.Text
    mp1.play
    End Sub
    for some reason this doesnt work can someone help me

  2. #2

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    15

    reply

    well it does work but i have to add another file to my playlist first when i alrdy have files on..

  3. #3
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    VB Code:
    1. 'change this
    2. mp1.FileName = lstplay.Text
    3. Label1.Caption = lstplay.Text
    4. 'to this
    5. mp1.FileName = lstplay.List(lstplay.ListIndex)
    6. Label1.Caption = lstplay.List(lstplay.ListIndex)
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width