Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Open On Screen Keyboard (OSK)

Posted on October 9, 2013October 26, 2015 By David Kittell

In order for this to work you need to follow these steps

  1. Go to “Project”, Select “ Properties…”
  2. Click on “Compile”, At the bottom of the screen click on “Advanced Compile Options…”
  3. Change “Target CPU:” to “AnyCPU” and click “OK”
Public Class Form1
Private oskProcess As System.Diagnostics.Process

Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'Create the OSK Process
	oskProcess = System.Diagnostics.Process.Start("osk.exe")
End Sub


Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
		If Me.oskProcess IsNot Nothing Then
If Not Me.oskProcess.HasExited Then
'CloseMainWindow would generally be preferred but the OSK doesn't respond.
Me.oskProcess.Kill()
End If

Me.oskProcess.Close()
Me.oskProcess = Nothing
End If
End Sub
End Class
Originally Posted on October 9, 2013
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code VB.NET

Post navigation

Previous post
Next post

Related Posts

Change Computer Name

Posted on July 18, 2013October 26, 2015

Option Explicit Set ws = WScript.CreateObject("WScript.Shell") Dim ws, t, p1, p2, n, cn, vbdefaultbutton Dim itemtype p1 = "HKLMSYSTEMCurrentControlSetControlComputerNameComputerName" n = ws.RegRead(p1 & "ComputerName") t = "Change Computer Name" cn = InputBox("Type new Name and click OK", t, n) If cn <> "" Then ws.RegWrite p1 & "ComputerName", cn End…

Read More

Show Duplicate Records

Posted on February 28, 2013October 26, 2015

These two queries run under different schools of thought and purpose but will help in finding duplicate records. First, if you only want to see the records that are duplicates and the amount of times they appear in the table you could run this code: SELECT memberid ,COUNT(*) AS No_Of_Occurrences…

Read More

C# Application Form Closing Event Question

Posted on March 23, 2014October 26, 2015

Sometimes you have a program that you would prefer someone not close without confirming they truly meant to close it. This script will assist in providing a question before the program simply closes. private void fm1_FormClosing(object sender, FormClosingEventArgs e) { DialogResult dialogResult = MessageBox.Show("Are you sure you want to close?",…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes