|
-
Oct 9th, 2005, 08:23 PM
#1
Thread Starter
Junior Member
How do you use .SeekCurrentPosition
I am using a trackbar to feed the position value into seekcurrentposition. I think that this is in millionths of a second so I multiply the trackbar value by 10000000. When scrolling the trackbar it does seek the music into the correct position however on a lot of files when the trackbar hits around value 215 the program crashes and says
An unhandled exception of type 'System.OverflowException' occurred in Media Player.exe
Additional information: Arithmetic operation resulted in an overflow.
This is my code
tbseek is a trackbar, fileLoader.Item is the audio instance to be manipulated
Private Sub tbSeek_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tbSeek.Scroll
fileLoader.Item(0).SeekCurrentPosition(tbSeek.Value * 10000000, SeekPositionFlags.AbsolutePositioning)
End Sub
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
|