Click here to Skip to main content
15,892,298 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Excel interop & filling columns from an array (VB.NET 3.5) [modified] Pin
Steven St. John1-Jul-11 13:15
Steven St. John1-Jul-11 13:15 
QuestionWebService monOccurs and maxOccurs Without Nillable [modified] Pin
KenBonny29-Jun-11 22:44
KenBonny29-Jun-11 22:44 
QuestionVBA text problem Pin
KORCARI28-Jun-11 10:51
KORCARI28-Jun-11 10:51 
AnswerRe: VBA text problem Pin
ChandraRam29-Jun-11 3:44
ChandraRam29-Jun-11 3:44 
AnswerRe: VBA text problem Pin
Dalek Dave29-Jun-11 5:44
professionalDalek Dave29-Jun-11 5:44 
QuestionInstaller [modified] Pin
KenBonny27-Jun-11 4:17
KenBonny27-Jun-11 4:17 
AnswerRe: Installer Pin
KenBonny27-Jun-11 21:22
KenBonny27-Jun-11 21:22 
QuestionDeviceID from CD Pin
JR21225-Jun-11 20:15
JR21225-Jun-11 20:15 
Hi,

I'm rewriting a old VB6 prog into vb dotnet 2010
I need for mij cddb control the deviceID
In vb6 I get it with this code

MCICtl.DeviceType = "CDAudio"
MCICtl.Wait = True
MCICtl.filename = DriveLetter
MCICtl.Shareable = True
MCICtl.Enabled = True
MCICtl.Command = "Open"
Dim DevId
DevId = MCICtl.deviceId
TocString = Control.GetMediaToc(DevId)


Now in vbdotnet I haven't get it succesfully
the windowsmediaplayer works on other ways

Someone has can help me

I found this on the net and my idee was that SCSITargetId was the attrib that i need but no luck

Function fGetCDroms(ByVal drive As String) As Generic.List(Of Devices)
  Dim WMI, Col, Ob As Object
  Dim s2 As String = ""
  Dim sID As String = ""
  Dim l As New Generic.List(Of Devices)
  Dim Toestel As New Devices
  WMI = GetObject("WinMgmts:")
  Col = WMI.ExecQuery("Select * from Win32_CDROMDrive")
  For Each Ob In Col
    Toestel = New Devices
    With Toestel

      .Availability = Ob.Availability
      .Capabilities = Ob.Capabilities
      .CapabilityDescriptions = Ob.CapabilityDescriptions
      .Caption = Ob.Caption
      .CompressionMethod = Ob.CompressionMethod
      .ConfigManagerErrorCode = Ob.ConfigManagerErrorCode
      .ConfigManagerUserConfig = Ob.ConfigManagerUserConfig
      .CreationClassName = Ob.CreationClassName
      .DefaultBlockSize = Ob.DefaultBlockSize
      .DeviceID = Ob.DeviceID
      .Description = Ob.description
      .Drive = Ob.Drive
      .DriveIntegrity = Ob.DriveIntegrity
      .ErrorCleared = Ob.ErrorCleared
      .ErrorDescription = Ob.ErrorDescription
      .ErrorMethodology = Ob.ErrorMethodology
      .FileSystemFlags = Ob.FileSystemFlags
      .FileSystemFlagsEx = Ob.FileSystemFlagsEx
      .InstallDate = Ob.InstallDate
      .id = Ob.id
      .LastErrorCode = Ob.LastErrorCode
      .manufacturer = Ob.Manufacturer
      .MaxBlockSize = Ob.MaxBlockSize
      .MaximumComponentLength = Ob.MaximumComponentLength
      .MaxMediaSize = Ob.MaxMediaSize
      .MediaLoaded = Ob.MediaLoaded
      .MediaType = Ob.MediaType
      .MinBlockSize = Ob.MinBlockSize
      .Name = Ob.Name
      .NeedsCleaning = Ob.NeedsCleaning
      .NumberOfMediaSupported = Ob.NumberOfMediaSupported
      .PNPDeviceID = Ob.PNPDeviceID
      .PowerManagementCapabilities = Ob.PowerManagementCapabilities
      .PowerManagementSupported = Ob.PowerManagementSupported
      .RevisionLevel = Ob.RevisionLevel
      .SCSIBus = Ob.SCSIBus
      .SCSILogicalUnit = Ob.SCSILogicalUnit
      .SCSIPort = Ob.SCSIPort
      .SCSITargetId = Ob.SCSITargetId
      .Size = Ob.Size
      .Status = Ob.Status
      .StatusInfo = Ob.StatusInfo
      .SystemCreationClassName = Ob.SystemCreationClassName
      .SystemName = Ob.SystemName
      .TransferRate = Ob.TransferRate
      .VolumeName = Ob.VolumeName
      .VolumeSerialNumber = Ob.VolumeSerialNumber
    End With
    l.Add(Toestel)
  Next

  Col = Nothing
  WMI = Nothing

  Return l
End Function

AnswerRe: DeviceID from CD Pin
JR21225-Jun-11 23:43
JR21225-Jun-11 23:43 
QuestionUsing LINQ to Objects to generate a frequency table - returned as a Dictionary [modified] Pin
Steven St. John25-Jun-11 5:28
Steven St. John25-Jun-11 5:28 
QuestionAdd Reference At Runtime Pin
Milad.Biroonvand23-Jun-11 8:47
Milad.Biroonvand23-Jun-11 8:47 
AnswerRe: Add Reference At Runtime Pin
Eddy Vluggen23-Jun-11 9:12
professionalEddy Vluggen23-Jun-11 9:12 
QuestionVB and MS Excel Pin
geekgautam23-Jun-11 3:07
geekgautam23-Jun-11 3:07 
AnswerRe: VB and MS Excel Pin
David Mujica23-Jun-11 3:28
David Mujica23-Jun-11 3:28 
GeneralRe: VB and MS Excel Pin
geekgautam23-Jun-11 18:26
geekgautam23-Jun-11 18:26 
GeneralRefresh Data Pin
David Mujica24-Jun-11 6:25
David Mujica24-Jun-11 6:25 
GeneralRe: Refresh Data Pin
geekgautam24-Jun-11 8:01
geekgautam24-Jun-11 8:01 
AnswerRe: VB and MS Excel Pin
Dalek Dave23-Jun-11 3:39
professionalDalek Dave23-Jun-11 3:39 
GeneralRe: VB and MS Excel Pin
geekgautam23-Jun-11 18:29
geekgautam23-Jun-11 18:29 
GeneralRe: VB and MS Excel Pin
geekgautam4-Jul-11 22:44
geekgautam4-Jul-11 22:44 
AnswerRe: VB and MS Excel Pin
Mycroft Holmes23-Jun-11 22:53
professionalMycroft Holmes23-Jun-11 22:53 
GeneralRe: VB and MS Excel Pin
geekgautam24-Jun-11 8:04
geekgautam24-Jun-11 8:04 
GeneralRe: VB and MS Excel Pin
Dalek Dave26-Jun-11 1:59
professionalDalek Dave26-Jun-11 1:59 
QuestionList(Of Integer) vs. an array (VB.NET 2008) Pin
Steven St. John21-Jun-11 5:45
Steven St. John21-Jun-11 5:45 
AnswerRe: List(Of Integer) vs. an array (VB.NET 2008) => Use List PinPopular
MicroVirus21-Jun-11 7:12
MicroVirus21-Jun-11 7:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.