VB button repeatedly clicks on the problem, in a hurry

Updated on amusement 2024-05-11
3 answers
  1. Anonymous users2024-02-10

    I think when you draw image1,2,3,4, it must be 4 at the end, and if you click on the bottom first, then 4 will block the rest, so it won't change. Actually, this is very easy to solve, you can change ** to the following.

    private sub command1_click()= true

    falsefalse

    1end sub

    private sub command2_click()= true

    falsefalse

    2end sub

    private sub command3_click()= true

    falsefalse

    3end sub

  2. Anonymous users2024-02-09

    private sub command1_click()= true

    falsefalse

    1end sub

    private sub command2_click()= false

    true false

    2end sub

    private sub command3_click()= false

    falsetrue 3end sub

    Estimate that your ** is overlapping.

  3. Anonymous users2024-02-08

    Hello, under normal circumstances, the enabled property of the button is set to false, and it will no longer be clicked. You can create a separate form and test it yourself.

    1. You put enabled=false at the front of the click button, and the first click will trigger enabled. Don't put it at the end.

    2. If it's not the above problem, it should be other ** problems of your program, which needs to depend on the specific ** and situation.

    Test**: Create a new form and add a command1 button. Below**command1 pops up with a delay of 5 seconds after clicking, that is, simulating long-term operation**.

    private declare function gettickcount lib "kernel32" ()as long

    private sub command1_click()

    Click on the button - available after 5 seconds"

    falsedim itick as long

    itick = gettickcount

    while gettickcount - itick < 5000

    doevents

    wendmsgbox "After 5 seconds, a pop-up window pops up"

    trueend sub

Related questions
3 answers2024-05-11

I am people, I am people, I am the subject, is the predicate, the person is the object, it is the same as the man. i am good people, good is an adjective. I do it badly I did badly, badly is an adverb, and an adverb is something that translates like "ground". >>>More

25 answers2024-05-11

Although a girl likes to be given something by others, she would not be very happy if it wasn't given to her by someone she liked, except for her friends. >>>More

23 answers2024-05-11

f(x-4)=f(x-2-2)=-f(x-2)=f(x), so the f(x) period is 4

f(40)=f(0) >>>More

3 answers2024-05-11

Hello landlord! If your QQ is stolen and the appeal prompt fails, you can resubmit the appeal form. >>>More

11 answers2024-05-11

1a 2a

3a4d5a6b >>>More