473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Windows Media Player and Volume Control

I wrote a quick app to play music and I am having difficulty connecting a
slider control to the Windows Media Player control. Here is my difficulty. I
need to set the sliders min and max properties and utilize its value
property to manage the volume of the Windows Media Player control. I am not
sure which property on the windows media control I am suppose to manipulate.
I tried to use the following: mp.volume = vsVol.value in the sliders Scroll
method but since I cannot get the min and max values correct, this code
always breaks. Apparently, the media control can not handle postitive
integers so when the sliders value goes above 0 it breaks. What the heck is
that?

Thanks in advance.
Nov 20 '05 #1
3 19873
Well I haven't even seen a bite on this question. So I will make it easier.
Can anyone point me to a good source of literature, documentation, website,
etc... that explains the windows media player properties in detail and how
they can be managed within vb.net?

Thanks in advance.

"rmorvay" <ad*************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I wrote a quick app to play music and I am having difficulty connecting a
slider control to the Windows Media Player control. Here is my difficulty. I need to set the sliders min and max properties and utilize its value
property to manage the volume of the Windows Media Player control. I am not sure which property on the windows media control I am suppose to manipulate. I tried to use the following: mp.volume = vsVol.value in the sliders Scroll method but since I cannot get the min and max values correct, this code
always breaks. Apparently, the media control can not handle postitive
integers so when the sliders value goes above 0 it breaks. What the heck is that?

Thanks in advance.

Nov 20 '05 #2
Cor
Hi Rmorvay

This is not my stuff, but do you know msdn.microsoft.com

One search on "mediaplayer" did give me this link.
The header from it is almost the same as you are asking

http://msdn.microsoft.com/library/de...pplication.asp

Merry christmas

Cor
Well I haven't even seen a bite on this question. So I will make it easier. Can anyone point me to a good source of literature, documentation, website, etc... that explains the windows media player properties in detail and how
they can be managed within vb.net?

Nov 20 '05 #3
This is a bit late but here is a solution to the slider volume problem.

Private Sub hsVolume_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles hsVolume.Scroll
Me.wmp.settings.volume = Me.hsVolume.Value
Me.lblVolume.Text = Me.wmp.settings.volume
End Sub

Lee
May 5 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

56
by: alan b | last post by:
I copied it and tried to edit the movie.htm below in the <PARAM NAME=*** location of the file where the videoclip is on my hard drive. It is already recorded by Windows Media Player. My version...
0
by: rmorvay | last post by:
I wrote a quick app to play music and I am having difficulty connecting a slider control to the Windows Media Player control. Here is my difficulty. I need to set the sliders min and max properties...
1
by: manoj | last post by:
hi, could some one tell how to design progress bar, volume control and other buttons as in windows media player. I mean look and feel. thank you, manoj
2
by: StefanT | last post by:
Hi, I have a web app and a I have a http handler for a file, when I have a web request for that file I insert a stream of bytes like this: public void ProcessRequest(System.Web.HttpContext...
3
by: UJ | last post by:
I have a .avi file that uses the Divx codec. If I load it with windows media player program it works fine. If I load it using my control in a program, it doesn't display. Over standard media files...
0
by: dongarbage | last post by:
Hi there, I've created a user control to put in a web page. I'd like to add a windows media player control to the user control that I've created. But, for some reason, the user control does not...
0
by: RickH | last post by:
Has anyone wrapped the Windows Media Player ActiveX control as a custom DataGridView column type (prefereably in VB)? That might want to share the source code on the group? So that video/audio...
1
by: =?Utf-8?B?bW91bnRpYW5naXJsNDA=?= | last post by:
The trouble that I am having is the volume on my Windows media player 10...it is adujusting on its own. I have contacted the maker of my pc and have set all master volumes to high thinking that...
7
matheussousuke
by: matheussousuke | last post by:
I spent about 3 weeks on this. First I tried WMP embedded, didnt work (active x issue), then JW PLayer, didnt work too, then Flow Player, then Jw wmv player silver light (Yehaa, it worked,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.