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..