473,387 Members | 3,033 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,387 software developers and data experts.

windows volume control

Hi,

I have an application in C#. From this application I would like to
adjust the master volumen in windows.

I have not seen a .NET class to do it.

Any ideas?

Thanks

Jul 28 '06 #1
2 7553
I think you should use P/Invoke to access volume control from .net1.1.
Firstly, you should find which Windows API control volume.

About P/Invoke , plz refer to http://www.pinvoke.net.

Hope this works.

Sincerely,
simida

Diego 写道:
Hi,

I have an application in C#. From this application I would like to
adjust the master volumen in windows.

I have not seen a .NET class to do it.

Any ideas?

Thanks
Jul 28 '06 #2
Thanks for your tipp.

I used the winmm.dll (Windows Multimedia API) which contains low-level
audio
and joystick functions, and it works!!

Best regards
Diego

simida wrote:
I think you should use P/Invoke to access volume control from .net1.1.
Firstly, you should find which Windows API control volume.

About P/Invoke , plz refer to http://www.pinvoke.net.

Hope this works.

Sincerely,
simida

Diego 写道:
Hi,

I have an application in C#. From this application I would like to
adjust the master volumen in windows.

I have not seen a .NET class to do it.

Any ideas?

Thanks
Jul 28 '06 #3

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

Similar topics

3
by: dreamer | last post by:
I am making a program for a friend with a disability. I need to adjust his audio volume using the keyboard as he cannot use a mouse. Any suggestions as to how I can raise the volume using the up...
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
0
by: Mark | last post by:
Hi I have an application in C# that has a volume slider on it. I need to adjust the master volume in windows when the user makes a change. Which is the best way to do this. I dont see a .NET...
0
by: steve | last post by:
I am writing a AP, can anyone help me how can my AP detect user mute/unmute or volume up/down from windows volume control?
3
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...
16
by: Basil Fawlty | last post by:
Hi everyone, I have an assignment, to create a simple VB program that computes the volume of a cylinder. The Form is pretty simple, it has a label and text box for base radius, another for height...
1
by: Christopher A. Kelly | last post by:
I need to figure out how to control any 3rd party application by simulating mouse click and key presses. I need to take a partial window title and get the handle then be able to send the necessary...
0
by: techspirit | last post by:
Hello , I am looking for help in controlling the volume of a media file in a vb.net application. The code that I currently have (attached below) tries to control the master volume which finally...
1
by: SeanBoyWalton | last post by:
Hi, I'm currently trying to build a website for a DJ friend of mine and I have come stuck with a couple of issues. I've searched everywhere and put some code together but I still have problems. ...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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.