Pop up touch screen keyboard when entering text box in vb.net

SweetingA
SweetingA used Ask the Experts™
on
Is there n easy way to pop up a touch screen keyboard when entering a text box in vb?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Like the Windows On Screen Keyboard (OSK) or something else? Could you post more of what you are trying to do (unless below is what you are looking for?)

Public Class Form1

    Private osk As Process

    Private Sub TextBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.Click
        If Me.osk Is Nothing OrElse Me.osk.HasExited Then
            If Me.osk IsNot Nothing AndAlso Me.osk.HasExited Then
                Me.osk.Close()
            End If

            Me.osk = Process.Start("osk")
        End If
    End Sub

End Class

Open in new window

Author

Commented:
I get an error "could not start on screen keyboard"

I am using a touch screen pc so i want the keyboard to pop up every time i enter a text box

Thanks
Most Valuable Expert 2012
Top Expert 2014
Commented:

Author

Commented:
I am running 64bit windows but i have checked the thread and my settings appear to be in line with the reecommendation (i.e. X86)

Author

Commented:
Had to share the points i'm afraid, Mathews solution is perfect on a 32 bit PC as i have proven.

Unfortunately never worked on my 64 bit PC.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial