How to activateclose input method in the program?

xiaoxiao2021-03-06  38

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

转载请注明原文地址:https://www.9cbs.com/read-68855.html

New Post(0)