locked
Keyboard detection RRS feed

  • Question

  • Hi All


    Can Any one suggest some ways how to detect whether a key board is connected to my system or not .








    With Regards
    Ananth


    ananth
    Friday, March 27, 2009 6:40 AM

Answers

  • hi ,

    i am working in windows (wpf application) not mobile application can u suggest methos to do it in windows











    With Regards
    Anand
    Ananth


    Hi AnanthB,

    This fourm is specially dedicated for Smart Device Application Development. so before posting your question please chose appropiate forum, fully explain your question.





    Pavan Pareta | If you find my post is helpful for you then mark as a answer.
    • Marked as answer by warrentang Tuesday, March 31, 2009 3:10 AM
    Monday, March 30, 2009 7:39 AM

All replies

  • You can check the following SystemState property : Microsoft.WindowsMobile.Status.SystemState.KeyboardPresent.
    Friday, March 27, 2009 10:26 AM
  •  thanks , can u provide me some sample code ....
    Ananth
    Friday, March 27, 2009 12:21 PM
  • if( Microsoft.WindowsMobile.Status.SystemState.KeyboardPresent ) 
        //keyboard present 
    else 
        //no keyboard 


    Well.....Here you have it.... You just have to add a reference to Microsoft.WindowsMobile.Status.dll in your project.

    • Proposed as answer by Akhena Friday, March 27, 2009 1:14 PM
    Friday, March 27, 2009 12:57 PM
  • hi ,

    i am working in windows (wpf application) not mobile application can u suggest methos to do it in windows











    With Regards
    Anand
    Ananth
    Monday, March 30, 2009 6:42 AM
  • hi ,

    i am working in windows (wpf application) not mobile application can u suggest methos to do it in windows











    With Regards
    Anand
    Ananth


    Hi AnanthB,

    This fourm is specially dedicated for Smart Device Application Development. so before posting your question please chose appropiate forum, fully explain your question.





    Pavan Pareta | If you find my post is helpful for you then mark as a answer.
    • Marked as answer by warrentang Tuesday, March 31, 2009 3:10 AM
    Monday, March 30, 2009 7:39 AM