Community discussion forum

How to detect keyboard and mouse status(remove or connected )?please help!

  • 10 months ago
    Im trying to create a program that can detect keyboard and mouse status (connected or removed) so that I can use it as trigger to execute programs.(Im using vb 2008)my computer can boot without keyboard connected using usb mouse and usb keyboard which is plug and play and a little cmos configuration...the thing that i want looks some thing like this: Private Sub Button1_Click(ByVal args As AnyType) Handles Button1.Click If mouse.getMouseState()=ConnectedToPC then Msgbox("Mouse is connected to Computer") Else Msgbox("No mouse connected to Computer") End If 'The same for keyboard End Sub can anybody give some sample code plaese!!! plaese help me!!!!! please help mates!! thanks in advance
    Post was edited on 10/01/2009 16:33:00 Report abuse

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback