Friday 20 September 2013

C# - Launch a windows 7 keyboard in Winforms.

From this article we can see how to launch a windows 7 virtual keyboard in winforms application , for this we take a example that on the click of textbox , windows 7 virtual keyboard should launch.

Code :

        public Form1()
        {
            InitializeComponent();        
        }

        private void textBox1_MouseClick(object sender, MouseEventArgs e)
        {
            string progFiles = @"C:\Program Files\Common Files\Microsoft Shared\ink";
            string keyboardPath = Path.Combine(progFiles, "TabTip.exe");
            Process.Start(keyboardPath);
        }

Output:


6 comments:

  1. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  2. how to use VS2012? Error on Path and Process

    ReplyDelete
  3. Please check the path of the Microsoft Shared\ink, please refer this path from the program files where ur setyp files are installed

    ReplyDelete