How to use a calculator coded in C to achieve keypad input?

Updated on technology 2024-06-09
10 answers
  1. Anonymous users2024-02-11

    1. Set the startselection property of textbox1 (I forgot whether it was this or selectionstart, which is used to set the selection position of the return text attribute), set to.

    It's the default to the last character.,If it doesn't work, then +1.

    2. Isn'?..t it all keyboard input?

    You mean the keyboard doesn't allow you to type anything other than a few symbols?

    Then add :: to the keypress(e) event function of the corresponding control

    Here's an example:

    Write ** in the keypress(e) event of the textbox.

    Only underscores ( ) can be entered

    intkey

    int);ifkey

    false;

    true;Replace 95 with +-* = ascii with a few characters, and then you can look up the attributes.

  2. Anonymous users2024-02-10

    Isn't it just a dozen buttons? Just pull them one by one.

    If you feel that it is difficult to control, it will be dynamically generated in the background.

  3. Anonymous users2024-02-09

    The keypad is not so simple yet, do you have to do it yourself?

    It's easy to implement backspace.

    );Press the backspace key of your keyboard.

    No waiting, that's it.

    It's all so clear.

  4. Anonymous users2024-02-08

    How do you implement keyboard input?

    It's the same, but with a different character encoding.

  5. Anonymous users2024-02-07

    Use the keypress event to determine what is entered according to the characters in the event attribute of the event.

  6. Anonymous users2024-02-06

    Do you want to learn C now? Learn together, learn together

  7. Anonymous users2024-02-05

    Add under the launch window:

    Launch the window. Get Focus ().

    Then add your keypad case**.

    In addition, you have to consider that when the mouse presses the button in the startup window, the button will automatically get the focus, so at this time, it is invalid when you use the keypad to type, so when you need to use the keypad regardless of the focus position, you can only add your keypad to each control on the startup window**.

  8. Anonymous users2024-02-04

    Press the Backspace key to remove the wrong number.

    Press next to the keypad to move the cursor.

  9. Anonymous users2024-02-03

    There is a small protrusion on the numeric key area of the keyboard with a 5, that is the reference key, you should try to keep your wrist still, use your fingers to tap, and practice more to be OK.

  10. Anonymous users2024-02-02

    The one above is right, generally just use the middle finger, real finger, ring finger, put the middle finger on top of the 5, the wrist does not move, the three fingers do not move down to tap OK, but you still have to practice more!

Related questions
12 answers2024-06-09

Assign three numeric variables to three text boxes.

Write in an instance of a clip on one of the Stage: >>>More

5 answers2024-06-09

I only know Pascal, not C, but I can tell you the idea: use a loop statement to retrieve 0 to n, if divide by 2 to get the remainder (mod) the result is 0 then it is an even number, if it is an even number, assign it to another variable s, if not, repeat the previous cycle. >>>More

8 answers2024-06-09

1.Power-on on button: Press this key to power on, or clear all registers. >>>More

5 answers2024-06-09

1. First of all, define a number of reed structure student, which contains the information of the student. >>>More

3 answers2024-06-09

I guess I can only write like this upstairs. However, there is still a big gap between this writing and the standard text input function of the console (such as scanf), such as not being able to use the arrow keys, not being able to use home end, etc. Of course, you can add these features yourself, but it's always hard to do it all, since the standard functions of other consoles have been improved over generations. >>>More