Hi Dan.
Here's how to do it!
Create a new VB project. Add a multimedia control ("Project...Components...M$ Multimedia Control") and a command button to the form.
In the properties for the Multimedia control, be sure that PlayEnabled, PlayVisible, PrevEnabled, PrevVisible, RecordEnabled and RecordVisible are all set to TRUE.
Go to the VB Editor and paste this code:
Now run the program.Code:Option Explicit Private Sub Command1_Click() End 'the program End Sub Private Sub Form_Load() 'Set properties needed by MCI to open. MMControl1.Notify = False MMControl1.Wait = True MMControl1.Shareable = False MMControl1.DeviceType = "WaveAudio" MMControl1.FileName = "c:\test3.wav" ' Open the MCI WaveAudio device. MMControl1.Command = "Open" End Sub
Click on the Round button (record) to make a new recording. Click on the rewind button and then the play button to hear the recorded file.
All the best.
Chris




Reply With Quote