Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. Access USB through vb.net

Access USB through vb.net

Scheduled Pinned Locked Moved Hardware & Devices
csharphelp
3 Posts 3 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amr M K
    wrote on last edited by
    #1

    Hi, I need to write a program that controls a camera get the data But to do that we need to call some system dll's. (This is because the camera connects to the computer through the USB port . any one can help AMR-CIS

    E 1 Reply Last reply
    0
    • A Amr M K

      Hi, I need to write a program that controls a camera get the data But to do that we need to call some system dll's. (This is because the camera connects to the computer through the USB port . any one can help AMR-CIS

      E Offline
      E Offline
      Eytukan
      wrote on last edited by
      #2

      you'll get a reply if you ask this in VB/VB.net forum.


      VuNic

      J 1 Reply Last reply
      0
      • E Eytukan

        you'll get a reply if you ask this in VB/VB.net forum.


        VuNic

        J Offline
        J Offline
        JUNEYT
        wrote on last edited by
        #3

        This sample shows how to be notified of a device being plugged in or removed from the system. It uses the WMI's Win32_DeviceChangeEvent class. The class is only available in Windows XP or 2003. Add a reference to system.management for this example. -------------------------------------------------------------------------------- Dim WithEvents w As ManagementEventWatcher Dim q As WqlEventQuery Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load q = New WqlEventQuery("Select * from Win32_DeviceChangeEvent") w = New ManagementEventWatcher(q) w.Start() End Sub Private Sub w_EventArrived(ByVal sender As Object, ByVal e As System.Management.EventArrivedEventArgs) Handles w.EventArrived MessageBox.Show("Device Event", e.Context.ToString) End Sub Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing w.Stop() End Sub

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups