![resize a program window with keyboard resize a program window with keyboard](https://i.stack.imgur.com/0zGCM.png)
PostMessage(hWnd, WM_CSKEYBOARDMOVE, 200, 200) Move the Hot Virtual Keyboard Move it first then show it Void button3_Click(System::Object^ sender, System::EventArgs^ e) Void button2_Click(System::Object^ sender, System::EventArgs^ e) HWnd = FindWindow("TFirstForm", "hvkFirstForm") Void button1_Click(System::Object^ sender, System::EventArgs^ e) Using namespace System::Security::Permissions Ĭonst System::UInt32 WM_CSKEYBOARD = WM_USER + 192 Ĭonst System::UInt32 WM_CSKEYBOARDMOVE = WM_USER + 193 Įxtern IntPtr FindWindow(String^ lpClassName, String^ lpWindowName) Įxtern IntPtr PostMessage(System::IntPtr hWnd, System::UInt32 Msg, int wParam, int lParam) Using namespace System::Runtime::InteropServices PostMessage(hWnd, WM_CSKEYBOARDRESIZE, 600, 300) // Resize to 600, 300 PostMessage(hWnd, WM_CSKEYBOARDMOVE, 0, 0) // Move to 0, 0 PostMessage(hWnd, WM_CSKEYBOARD, 2, 0) // Hide PostMessage(hWnd, WM_CSKEYBOARD, 1, 0 ) // Show Int32 hWnd = FindWindow("TFirstForm", "hvkFirstForm") Public static extern Boolean PostMessage(Int32 hWnd, Int32 Msg, Int32 wParam, Int32 lParam) Private static extern Int32 FindWindow(string _ClassName, string _WindowName) Public const Int32 WM_CSKEYBOARDRESIZE = WM_USER + 197 Public const Int32 WM_CSKEYBOARDMOVE = WM_USER + 193 Public const Int32 WM_CSKEYBOARD = WM_USER + 192 My.("HKEY_CURRENT_USER\Software\ComfortSoftware\hvk", "KeyboardName", "Name of another chosen keyboard") Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click 'Change to another keyboard type and show it My.("HKEY_CURRENT_USER\Software\ComfortSoftware\hvk", "KeyboardName", "Name of your chosen keyboard") 'Change the Registry entry for the required keyboard Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click 'Fade Hot Virtual Keyboard in Visual Basic Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click 'Toggle Hot Virtual Keyboard in Visual Basic Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click 'Move Hot Virtual Keyboard in Visual Basic Move it first then show it Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click 'Close Hot Virtual Keyboard in Visual Basic Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Open/show Hot Virtual Keyboard in Visual Basic PostMessage(FindWindow('TFirstForm', 'hvkFirstForm'), WM_CSKEYBOARDRESIZE, Width, Height) ĭeclare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integerĭeclare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer PostMessage(FindWindow('TFirstForm', 'hvkFirstForm'), WM_CSKEYBOARDMOVE, Left, Top) to move keyboard (Left, Top - new position)
![resize a program window with keyboard resize a program window with keyboard](http://www.rawinfopages.com/mac/sites/default/files/sites/default/files/img17/spectacle-mac-app-1.jpg)
![resize a program window with keyboard resize a program window with keyboard](https://i.stack.imgur.com/oCvSq.jpg)
PostMessage(FindWindow('TFirstForm', 'hvkFirstForm'), WM_CSKEYBOARD, 4, 0) PostMessage(FindWindow('TFirstForm', 'hvkFirstForm'), WM_CSKEYBOARD, 3, 0) PostMessage(FindWindow('TFirstForm', 'hvkFirstForm'), WM_CSKEYBOARD, 2, 0) PostMessage(FindWindow('TFirstForm', 'hvkFirstForm'), WM_CSKEYBOARD, 1, 0)
#RESIZE A PROGRAM WINDOW WITH KEYBOARD WINDOWS#
You can use Windows Messages to control the virtual keyboard.
#RESIZE A PROGRAM WINDOW WITH KEYBOARD HOW TO#
How to show, close, move, or resize the on-screen keyboard in Java, C#, C++, Visual Basic, Delphi, etc.