Use a virtual Keyboard on focused Textboxes and DataGridView Cells
问题 In my Form I have various Textboxes that I write into with an in Form keyboard I created using Buttons. I have this code in Form.Load, which uses an event handler to determine which Textbox has the Focus: For Each control As Control In Me.Controls If control.GetType.Equals(GetType(TextBox)) Then Dim textBox As TextBox = control AddHandler textBox.Enter, Sub() FocussedTextbox = textBox End If Next Then I use this on each button to write a specific character: Private Sub btnQ_Click(sender As