TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
bodnar edmond
NA
8
0
make a slider control to "slide" automatically while playing mp3 file
Aug 21 2009 1:24 PM
hello, i am making an mp3 player and i have this code which works fine when i'm trying to set the position of the current playing file.
what i don't know is how to make the slider control to automatically slide when i click the play file.
this is the code i have:
DoubleAnimation animatie = new DoubleAnimation();
animatie.Duration = player.NaturalDuration;
player.Pause();
player.Position = TimeSpan.FromSeconds(slider_position.Value);
player.Play();
if (player.NaturalDuration.HasTimeSpan)
{
slider_position.Minimum = 0;
slider_position.Maximum = player.NaturalDuration.TimeSpan.TotalSeconds;
}
i hope i made myself clear enough
Reply
Answers (
3
)
C# project to WPF?
Strange Compile error , my Project Assemby cannot be found Pin