473,508 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 19883
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
leecottrell
1 New Member
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
6855
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
1343
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
6193
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
2854
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
5171
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
1882
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
1198
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
1439
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
4438
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
7227
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7331
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
7391
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...
1
7054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5633
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5056
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3204
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.