c How to add a double click event to the auto generated control, is a double click event instead of

Updated on technology 2024-03-16
7 answers
  1. Anonymous users2024-02-06

    The button does not have a doubleclick event.

    eventhandler(button1_doubleclick);With this method, the double-click event is not triggered when double-clicked, but rather a double-click event.

    It is recommended to use label, select an event (like lightning) in the property, and double-click and doubleclick. The image property can be changed to make it look like a button.

    If you must use the button button, you can add a timer, which is named button1 and timer1. Double-click button1 and timer1 to add button1 click and timer1 tick, respectively. Set the interval of timer1 to 100 (i.e. seconds).

    If the timer's enabled value is false when you click the button, start the timer, otherwise close the timer and double-click. ** Below:

    private void button1_click(object sender, eventargs e)

    if(= false;

    The following is the content of a double-click event.

    Double-click the event to end.

    true;If the current time is more than 1 second after the last recording time, the timer is closed and the click event is executed. ** Below:

    private void timer1_tick(object sender, eventargs e)

    if ( == "")

    elseif ((

    false;

    The following is the content of the click event.

    Click End of Event.

  2. Anonymous users2024-02-05

    1. First of all, create a new form as the carrier of button.

    2. Then on this form, drag a button from the toolbar.

    3. Then select the button and press the silver button, right-click - you can select the attribute from the menu and click it.

    4. After clicking, in the open attribute group, find the text attribute, fix the value of the text and modify it to OK.

    5. At this time, the button on the interface and the display text will be changed to the content after the correction of the eggplant.

  3. Anonymous users2024-02-04

    1. First of all, create a new form as the carrier of button.

    2. Then on this form, drag a button from the toolbar.

    3. Then select the button, right-click - you can select the attribute from the menu and click it.

    4. After clicking, in the open attribute group, find the text attribute, modify the value of text, and modify it to OK.

    5. At this time, the button on the interface and the displayed text will be changed to the modified content.

  4. Anonymous users2024-02-03

    Click on the event, left-click on the designer, and double-click the button. Double-click on an event to go to the Events tab and find mousedoubleclick, click on the event and it will be automatically generated.

  5. Anonymous users2024-02-02

    The right-click properties are onclick() and ondoubleclick() event properties.

  6. Anonymous users2024-02-01

    Double-click the form directly. Is it ready to sign up?

  7. Anonymous users2024-01-31

    Learn about the properties and events of controls, practice them...

Related questions
10 answers2024-03-16

I know too much of this kind of problem. All want templates to be auto-generated. >>>More

4 answers2024-03-16

Select the directory in the references, and after you get the settings right, the directory will be automatically compiled. >>>More

16 answers2024-03-16

How to automatically generate a wps directory.

13 answers2024-03-16

1. Open the excel document you want to operate.

2. Press the Ctrl+L key to pop up the Create Table prompt box, and click the OK button in the box. >>>More

17 answers2024-03-16

The automatic generation method of the catalog. There are two key points: one is the use of "style and formatting" for long documents; The second is the automatic generation of directories. >>>More