473,407 Members | 2,598 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,407 software developers and data experts.

scrollbar control volume

Hey im very new to VB and have read many tutorials but cant find a way to make a scroll bar control the volume on either your computer or the sound file itself. Any suggestions would be very much appreciated...


also a little of topic, but is it possible to play 2 .wav files at once?
Mar 7 '07 #1
1 3829
vijaydiwakar
579 512MB
Hey im very new to VB and have read many tutorials but cant find a way to make a scroll bar control the volume on either your computer or the sound file itself. Any suggestions would be very much appreciated...


also a little of topic, but is it possible to play 2 .wav files at once?
try to use windows media player and to change the volumn of it use following code
Expand|Select|Wrap|Line Numbers
  1.  
  2. Private Sub h_Change()
  3. With n
  4. .Volume = .Volume + 10
  5. End With
  6. End Sub
  7.  
  8. Private Sub h_Scroll()
  9. With n
  10. .Volume = .Volume + 10
  11. End With
  12. End Sub
  13.  
  14. ' where h is horizental scrollbar and n is windows media player
  15.  
to play 2 song u mat use 2 media player or use API playsound for that
Mar 7 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Paul T. RONG | last post by:
Dear all, Can one control the subform scrollbar through vba? For example, I would like to make two command buttons on the main form to control the subform scrollbar. Click 1st button the...
0
by: Anupam Mukherjee | last post by:
Hi, I have a Vertical ScrollBar inside a form. How do I get or set the height of the paddle inside the ScrollBar control? Note that it is a separate ScrollBar control nad cannot lnow by itself...
0
by: Lundy | last post by:
greetings, The listbox control on my aspx page has a vertical scrollbar. But some of the text extends beyond the right limit of the listbox. I don't see a horizontal scrollbar, and I don't...
0
by: Antony | last post by:
Hi - another scrollbar question. If I have a control on a form, and that control has scrollbars showing, and the scrollbars were put there by the control and not by me, how do I get the...
22
by: Colin McGuire | last post by:
I apologize for posting yet another scrollbar question. Here is my code. All I want is for a diagonal line to appear from coordinates (0,0) to (width,height) in a usercontrol regardless of whether...
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...
7
by: Rich Milburn [MVP] | last post by:
Ok I am not a programmer, I copied some code and very painfully got it working in VB6. I can adjust the volume with waveOutSetVolume on winmm.dll. But I could not seem to be able to figure out how...
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: Tom | last post by:
First, I posted a similar request for help in another group and now don't find the posting. Problem with my newsreader perhaps ... but apologies if this appears as a cross posting. My code is...
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: 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...
0
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...

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.