[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:
' Hardcoded maximum, because i know the length of the song...
Progress.Maximum = 269
' setting the value to the current time
Progress.Value = player.Ctlcontrols.currentPosition
But how do i loop it so it is synchronized with the song ?
Re: [2008] Making a progressbar's length equal to music length ?
You'd Start a Timer and on every Tick you'd repeat that second line.
Re: [2008] Making a progressbar's length equal to music length ?
Nice thanks im looking into it...
But when im doing timer.enabled = true, i get some error saying System.NullReferenceException was unhandled, and a error on danish...
Re: [2008] Making a progressbar's length equal to music length ?
Try writing timer1.Enabled = True.
Re: [2008] Making a progressbar's length equal to music length ?
i made the variable as timer so no ;) But its fixed now, thanks for the help