Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Texbox in grid does not recieve focus
Message
From
19/04/2000 14:33:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00361420
Message ID:
00361453
Views:
15
>I have a textbox in a grid where I trap for the return key in the keypress event:
>
>
>IF nKeycode = 13
>  NODEFAULT
>  Thisform.pEdit()
>Endif
>
>
>The only problem is the keypress event never fires! For that matter, I put a wait window in the gotfocus event, and that event never fires either. Can anyone enlighten me as to what may be going on here?


Maybe textbox is not the CurrentControl or Dynamiccurrentcontrol. In BRCC this could work better :
if lastkey()=13 and !mdown()
  NODEFAULT
  Thisform.pEdit()
Endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform