VB makes a soft keyboard, and VB makes a soft keyboard

Updated on technology 2024-03-30
16 answers
  1. Anonymous users2024-02-07

    dim n as integer

    GetFocus event for textbox1:

    n=1...The getfocus event of the other textbox sets the corresponding n value) the click event of commandbotton1:

    select case n

    case 1

    The above is just the idea, it is recommended that you use an array of controls for specific operations, which can simplify a lot**.

  2. Anonymous users2024-02-06

    To determine the current focus of the cursor, pressing the button input is only valid for the textbox where the cursor is located.

    It is recommended that the API get the handle where the focus is and then setWindowText quickly.

  3. Anonymous users2024-02-05

    Inside VB, there is a function SendKeys, which can send keys to the focused window to simulate input. You make your own buttons (you can use an array of widgets) and then sendkeys key-value names, so you're ready to do the soft keyboard input. The function usage is as follows:

    sendkeys ""0�2 �0�2 �0�2 �0�2 �0�2'This means sending the enter key.

  4. Anonymous users2024-02-04

    Set the caption attribute of the Jing Wei button to the text you want to produce with Kaixian, ** such as the transcript called.

    private sub command1_click()=

    end sub

    The backspace keys are as follows.

    private sub command2_click()dim a as integer

    a =if <>0 then = left(, 1) &right(, len(

    if a > 0 then = a - 1end sub

  5. Anonymous users2024-02-03

    With datagridview, or array a bunch of buttons, there will be no bad focus handling, because they are all ** or buttons.

  6. Anonymous users2024-02-02

    Although it is a focus issue, if you want to achieve any effect, don't say anything, don't ask for it, how can others answer you?

  7. Anonymous users2024-02-01

    The questions are not clear, you only talk about the focus of the problem, who can understand.

  8. Anonymous users2024-01-31

    Make a form with 10 buttons on it, and add variables to each button, with a value of 0-10.

  9. Anonymous users2024-01-30

    Design a class with a form, put 10 buttons in it, design the caption as 0-9, and click the button to return the number 0-9.

    In the gotfocus event of the text box in the main window, instance this class, get the return value and assign it to the text control.

  10. Anonymous users2024-01-29

    The numeric keypad can be hidden (visible=false) and activated when you click on the text box.

    The implementation of the numeric keypad can be used to implement the input of text in the click event of the button with an array of button controls, put the keyboard in the frame of a frame, and make the control display in the appropriate position by setting top and left.

  11. Anonymous users2024-01-28

    public txt as stringsub Ƶ 1 click().

    Textbox = txt

    end sub

    Create a form f, make 11 buttons (one of which is confirm), a text box button 1: =&"1"

    Button 2 : =&"2"

    Button 3: =&"3"

    button"Confirm" : txt =

  12. Anonymous users2024-01-27

    You can use the sendkey function to send the text you want to enter to the text box.

  13. Anonymous users2024-01-26

    Hello! I need one too, can you send me one? Thank you!

  14. Anonymous users2024-01-25

    The touch screen is not a matter of which program it is, but rather a haptic feedback system within the screen. Therefore, as long as the program is controlled by a button, it can be run on the touch screen system, and the same is true for VB, just like mouse click events. The click event of each text box invokes the soft keyboard, and then uses a variable to record which text box it is, and checks the variable when entering the number to determine which text box to enter.

  15. Anonymous users2024-01-24

    Set the default input method to the input you need, and then open the software disk and shut down to see.

  16. Anonymous users2024-01-23

    Do you want the controls of the program above or what? Is it the thing that comes out of the symbol under the dot button and the content of the emoji under the dot emoji?

    If you want to implement it, you need to define several frame controls, and if you want to display which, just let the visible attribute of the corresponding frame control be true, and the rest will be all defined as false. I still don't understand what you mean, though.

    I've seen the following **, what are you going to achieve? It's still not clear.

    Then you need to check the connection program between VB and Word on the Internet, Word is not easy to control, and it feels like Excel is easy to control.

    Hehe. This won't help you. Do it yourself.

Related questions
11 answers2024-03-30

Insert 3 texts, 1 command

private sub form_load()= "1000" 'Blood volume. >>>More

5 answers2024-03-30

The following methods are for reference.

Method 1: Use the sendkeys statement. >>>More

11 answers2024-03-30

Is there any raw data? What is the interface like? Where does the grade data come from?