Home > Just Blog'ing > Onscreen Keyboard

Onscreen Keyboard

January 21st, 2009 Elze Leave a comment Go to comments

I can think of many .NET Micro Framework applications that require text input. Jan Kucera has made a control for this using the up/down and left/right buttons to write text. You can find this control on his .NET Micro Framework Examples page.

With the Touchscreen support of MF 3.0 I tought it would be nice to have something like an on screen keyboard like you find on modern cellular phones. I made a simple KeyboardWindow class. When you create a new KeyBoardWindow an keyboard is displayed on the screen with a flickering cursor. Simply tap on the buttons to add a extra char. Shift is supported.

I made a Visual Studio 2008 Solution that encapsulates and demonstrates the class.
You can download it here: MF_OnScreenKeyBoardDemo.zip

I hope it can be usefull for someone!
 

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • NuJIJ
  • Technorati
  • Yahoo! Bookmarks
Categories: Just Blog'ing Tags: , , ,
  1. pawel
    January 22nd, 2009 at 20:51 | #1

    Can I use your code in commercial app?

  2. Peter F. Jørgensen
    January 22nd, 2009 at 21:59 | #2

    Very nice :-)
    I just had to add 2 code lines for it to work in my emulator (I don’t have any hardware yet – but it is on its way).

    The code lines are

    using Microsoft.SPOT.Touch;

    and

    Touch.Initialize(mainProgram);

    in the Main() method.

    Keep up the good and productive work.
    Peter F. Jørgensen

  3. January 22nd, 2009 at 23:33 | #3

    Hi Peter,

    Thanks for mentioning. Strange that the code ran on my emulator as Touch.Initialize is realy mandetory. I added it to the project.

  1. No trackbacks yet.