|
-
Nov 20th, 2000, 03:44 AM
#2
Hyperactive Member
playing wave files' E Z.
if you're not using Windows 2000, do this:
(Multimedia Control ain't work'n with 2000)
steps:
right-click toolbox.
select Microsoft MultiMedia Control 6.0
(or 5.0, if you have VB 5.0)
click OK.
here's de code:
(inside your module that contains the object that is
going to receive focus)
Option Explicit
Private Sub WhatEver_GotFocus()
MMControl1.DeviceType = "WaveAudio"
MMControl1.FileName = "C:\WINNT\MEDIA\TADA.wav"
MMControl1.Command = "open"
MMControl1.Command = "play"
End Sub
There is an alternative. You can use
the Windows Media Player ActiveX control, or you can write
lots of assembly code inside C++ to make your own ActiveX
control that plays media files.
[Edited by jovton on 11-20-2000 at 03:48 AM]
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
|