Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Click commandbox
Message
From
15/08/2019 06:00:43
 
 
To
15/08/2019 05:51:55
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01670091
Message ID:
01670097
Views:
78
>>Have you tried the forms keypreview-method?
>
>it works.
>
>in the cmdbutton.keypress
>LPARAMETERS nKeyCode, nShiftAltCtrl
>thisform.zkeypress1 =nkeycode
>
>in the cmdbutton.click
>if !thisform.zkeypress1=13
>return
>endif
>
>but now the mouse click doesn't work.

Not sure why this is in the .NET section, but it appears you're talking only VFP.

Use NODEFAULT to suppress the normal action of KeyPress.
IF m.nKeyCode <> 13
  NODEFAULT
ENDIF
Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform