I have an application for a Windows 8 tablet that is a modified VB6.0 program and needs a keyboard input. I am trying to use Microsoft's onscreen keyboard, by accessing osk.exe. I have attempted different configurations all resulting in errors, but the one I have tested successfully in Windows XP, but won't work in newer versions of Windows, is this:

Private Sub Command1_Click()
Shell "OSK.EXE", vbMaximizedFocus
End Sub

Which results in:

"Invalid procedure call or argument."

Very simple. Should work. Doesn't. Hmm?