code

Posts 1–2 of 2 · Page 1 of 1
code
Plx code for, open, n close my "I" cd rom.
Public Class Form1
Private Declare Function mciExecute Lib "winmm.dll" (ByVal lpstrcommand As String) As Long
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub CDOpen()
mciExecute("Set CDaudio door open")
End Sub
Private Sub CDClose()
mciExecute("Set CDaudio door closed")

End Sub


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
CDOpen()
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
CDClose()
End Sub
End Class

Copied from my VB Project..
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?