I do not understood him until now (I think I do, maybe wrong again.)
He said, “when I click "F2" then the key of "F12" and a button is enabled=false”
My understanding is:
If the user press F2 and then (within 100 ms, for example) press F12 continuously, then disable the button.
Please confirm me, sarifah.
If I were to do it, I need a class scope variable bF2Clicked (Boolean). I may need a timer also.
bF2Clicked = False at Form Load
bF2Clicked = True at Form Load, and timer start.
bF2Clicked = False at timer stop.
Button1.Enable = False if bF2Clicked = True And Key = F12.