First, add the MainMenu and InputPanel controls on the form When the mouse focus enters the TextBox or other control, you can call the following code call / close input method soft keyboard Private Sub TextBox1_gotfocus (Byval Sender As Object, BYVAL E AS System.EventArgs) Handles TextBox1 .GotFocus InputPanel1.Enabled = True End Sub Private Sub TextBox1_LostFocus (ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.LostFocus InputPanel1.Enabled = False End Sub