VB.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 307,157 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,544 people online right now. Registration is fast and FREE... Join Now!




vb mp3 trackbar

 

vb mp3 trackbar

waveman

2 Oct, 2009 - 10:08 AM
Post #1

New D.I.C Head
*

Joined: 25 Sep, 2009
Posts: 31

i have a trackbar similar to wmp
i set the maximum and minimum

CODE


trackbar1.maximum = AxWindowsMediaPlayer1.ctlcontrols.currentItem.Duration
trackbar1.minimum = 0


idk how to start

i read some articles here but i cnt understand

please helpp happy.gif

This post has been edited by waveman: 2 Oct, 2009 - 10:09 AM

User is offlineProfile CardPM
+Quote Post


AdamSpeight2008

RE: Vb Mp3 Trackbar

2 Oct, 2009 - 02:08 PM
Post #2

The Bandido Coder
Group Icon

Joined: 29 May, 2008
Posts: 2,734



Thanked: 160 times
Dream Kudos: 3925
Expert In: vb.net, LINQ

My Contributions
Have you read the My Music Player Tutorial
User is offlineProfile CardPM
+Quote Post

waveman

RE: Vb Mp3 Trackbar

2 Oct, 2009 - 05:52 PM
Post #3

New D.I.C Head
*

Joined: 25 Sep, 2009
Posts: 31

i used your codes but my trackbar seems not moving

but it gets everything what i need
User is offlineProfile CardPM
+Quote Post

waveman

RE: Vb Mp3 Trackbar

3 Oct, 2009 - 05:48 AM
Post #4

New D.I.C Head
*

Joined: 25 Sep, 2009
Posts: 31

someone help please im having a hard time to get it ><
User is offlineProfile CardPM
+Quote Post

Asscotte

RE: Vb Mp3 Trackbar

3 Oct, 2009 - 09:18 AM
Post #5

D.I.C Regular
Group Icon

Joined: 8 Feb, 2009
Posts: 400



Thanked: 10 times
Dream Kudos: 175
My Contributions
how are you controling the music from the trackbar?

Or does the track bar work properly?

Or are you causing an error somewhere?
User is offlineProfile CardPM
+Quote Post

waveman

RE: Vb Mp3 Trackbar

3 Oct, 2009 - 06:16 PM
Post #6

New D.I.C Head
*

Joined: 25 Sep, 2009
Posts: 31

trackbar doesnt fit to the duration of a song im causing errors

This post has been edited by waveman: 3 Oct, 2009 - 06:16 PM
User is offlineProfile CardPM
+Quote Post

AdamSpeight2008

RE: Vb Mp3 Trackbar

4 Oct, 2009 - 12:09 AM
Post #7

The Bandido Coder
Group Icon

Joined: 29 May, 2008
Posts: 2,734



Thanked: 160 times
Dream Kudos: 3925
Expert In: vb.net, LINQ

My Contributions
You need to cast the duration from a double to an integer fort the maximum of the trackbar.
User is offlineProfile CardPM
+Quote Post

waveman

RE: Vb Mp3 Trackbar

4 Oct, 2009 - 02:55 AM
Post #8

New D.I.C Head
*

Joined: 25 Sep, 2009
Posts: 31

should like this?

CODE


Dim x As Integer

x = Convert.ToInt32(AxWindowsMediaPlayer1.Ctlcontrols.CurrentItem.duration)


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 05:43PM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month