Link to home
Start Free TrialLog in
Avatar of pcnet2004
pcnet2004

asked on

set the Microphone Recording control volume

my question is in this URL, but i still haven't reach a solution, please help me

(https://www.experts-exchange.com/questions/21068929/control-the-mic-line-In-volume.html)

I want simply to set the volume of the microphone recording control in VB.NET
Avatar of Daniellus83
Daniellus83
Flag of Netherlands image

Hello,

all of the code pasted above is useable, the idea of compiling in Visual basic (the old version ;-) ) and using in VB.NET is the most simple solution...
Here is the original VB6(!!) source (I downloaded somewhere form MSDN):  http://www.danieltrommel.com/download/volume.zip

This source have I altered to be usable within a Scrollbar in VB6... and next I did make a compilation (not .exe) in VB6 for you in the form of an ActiveX Dll wich you can IMPORT in VB.NET !!!


This is the way you can do this (VERY VERY simple!!) ::

step 1) download my "home-for-you-made" file:  http://www.danieltrommel.com/download/Mic_scroller.ocx

step 2) Start your VB.NET 2003,...

step 3) Select on the TOOLBOX (left on you .net 2003 interface) the section "My User Controls..."

step 4) Press now with your Right-mouse-button on the empty gray area on the toolbox and...

step 5) choose Add/Remove Items

step 6) In the new opened window choose the SECOND tabsheet "COM Components"

step 7) Press the button "Browse" and open your downloaded file (http://www.danieltrommel.com/download/Mic_scroller.ocx)

step 8) Now you should see a new icon appear on you Toolbox > My User Control

step 9) Add this component to your Form(s) like you would do with e.g. Labels, textboxes...

Final ) Run your program to find out that your now able to control your MIC!!!


-------------

:-) Daniël


Btw.: I am a new user.. and... can I get those 50 + 500 points?  '-\ ... At least I cracked the problem....
ASKER CERTIFIED SOLUTION
Avatar of Daniellus83
Daniellus83
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pcnet2004
pcnet2004

ASKER

thanks very match Daniel this library solved my problem, and thanks also to ajaikumarr
Hello daniel

I  also have the same problem  for which u have posted the ocx.. But theOCx which i want is the slider control  like we have in the  microphone slider in task bar volume control insated of the slider which u have given in OCX
can u just change the control and make  the control as slider control and post that again....
 and if possible can u jsut let us know how u have make that OCX


rajender123 ;

That possible but we make 2 things sure:

1) You want exactly the OCX I made and posted here, but now you want it in your taskbar... am I right?
2) You need to open up a new question for that were I can post the solution.
Hi daniel

I think u have not understood my question. I want the same contol which u have posted here. But  insted of that  slide control whcih u have used in your control, I want the  Volume Control.... Only u have yto replace the control ,,,,,,
Like  the  same volume slider bar control for microphone  when we run sndvol32.exe .

U have to just change the control ( use the similar volume control which  the windows is using  in sndvol32.exe).



Can u pls change your control and post that again as i really want to use to use that control in my program. I hope that u will get back to me soon


rajender123; post a new question (titled "Main Volume OCX"; no extra text needed) and paste a link here to it, and I will help you.... (changing is NOT that simple!)

...if I am right this time: You want a horizontal slider that controls the MAIN volume ....