|
-
Feb 28th, 2003, 08:03 PM
#1
Thread Starter
Hyperactive Member
play a sound file??
How do I play a sound file in my program??
Simple I am sure...
Please be detailed...
Thanks,
Anjari
-
Feb 28th, 2003, 08:21 PM
#2
PowerPoster
Through COM Interop, you could use the windows media player ocx component.
-
Feb 28th, 2003, 08:44 PM
#3
Thread Starter
Hyperactive Member
ummm
Hehe please explain a little more..
Anjari
-
Feb 28th, 2003, 09:30 PM
#4
Member
Right Click the toolbox and select cosomize toolbox.
Click on the Com Components tab and scroll down to the bottom were it says "Windows Media Player".
Click the check box beside it and click ok.
At the bottom of the toolbox their sould now be the Windows Media Player control.
That if you confess with your mouth, "Jesus is Lord," and believe in your heart that God raised him from the dead, you will be saved.
-
Feb 28th, 2003, 10:38 PM
#5
API will work too:
VB Code:
Private Declare Auto Function PlaySound Lib "winmm.dll" (ByVal ByVallpszSoundName As String, ByVal hModule As Integer, ByVal dwFlags As Integer) As Integer
SUB...etc
Dim pathtofile As String = "c:\test.wav"
Dim fileName As String = String.Concat(pathtofile)
Const SND_FILENAME As Integer = &H20000
PlaySound(fileName, 0, SND_FILENAME)
end sub
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|