Results 1 to 5 of 5

Thread: Enabling & Disabling Hardware Devices

  1. #1

    Thread Starter
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575

    Enabling & Disabling Hardware Devices

    Hi,

    Ever since I have got my new computer, my USB keyboard has failed to start up every now and again when my computer boots. It happens about 1/5th of the time so its enough to start getting me annoyed.

    The only way to fix it is to go into device manager, using the mouse, disable the keyboard and re-enable it. This fixes it straight away.

    I am just wondering if it is possible, somehow, using Visual Basic that there would be some code to detect if a certain device is in a current state and if so, disable it, wait a few seconds then enable it again.

    Can this be done in visual basic? if it can, is it too hard to get help on here?

    Thanks very much

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Just un-plug it then plug it back in.

    You probably have a problem with your USB ports.

  3. #3

    Thread Starter
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575
    that wasn't my question... i dont want help with the problem thanks, i just need help coding my program. ill try not to mention my problem if i do a thread like this again

  4. #4
    New Member
    Join Date
    Aug 2005
    Posts
    8

    Re: Enabling & Disabling Hardware Devices

    Microsoft has an app called devcon it can enable/disable and show status of all devices I make a frontend to do things like you want but in my case I disable all usb ports and CDRoms for the other users cant have access

  5. #5
    Fanatic Member uniquegodwin's Avatar
    Join Date
    Jul 2005
    Location
    Chennai,India
    Posts
    694

    Re: Enabling & Disabling Hardware Devices

    Try searching in www.pinvoke.net
    and www.allapi.net Hope that helps a bit atleast
    Godwin

    Help someone else with what someone helped you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width