Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
CD EJECT
Author:
Krishna
E-mail:
Click to e-mail author
Submitted:
8/2/2006
Version:
VB6
Compatibility:
VB6
Category:
Miscellaneous
Views:
17835
Ejecting cd 5 lines of code.
Declarations:
'none
Code:
Private Sub Form_Load() Call eject End Sub Public Sub eject() 'code to eject cdrom ok Dim owmp As Object Dim colCDROMs Set owmp = CreateObject("WMPlayer.OCX.7") Set colCDROMs = owmp.cdromCollection If colCDROMs.Count >= 1 Then For i = 0 To colCDROMs.Count - 1 colCDROMs.Item(i).eject Next End If End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement