Results 1 to 5 of 5

Thread: [RESOLVED] Making a progressbar's length equal to music length ?

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Location
    Denmark
    Posts
    178

    [RESOLVED] Making a progressbar's length equal to music length ?

    How can i make a progressbars length the same as the music's length ?
    Like if the song is halfways the progressbar is halfways.

    progress = progressbar1
    player = axWindowsMediaPlayer
    vb.net Code:
    1. ' Hardcoded maximum, because i know the length of the song...
    2. Progress.Maximum = 269
    3. ' setting the value to the current time
    4. Progress.Value = player.Ctlcontrols.currentPosition

    But how do i loop it so it is synchronized with the song ?
    Last edited by Link; May 18th, 2008 at 03:04 AM.

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