Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container in Grid Column
Message
 
To
02/03/2001 12:21:22
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00481442
Message ID:
00481643
Views:
11
I think you have this code in the keypress event of the textbox?
The you can issue nodefault to overide the default behavior of going to the next textbox.




>Hello all,
>
>I have a container class that has 3 text boxes. In the key press event of each text box. I have the following code:
>
>
>do case
>   case arrowup
>      if bof()
>         locate
>      else
>         skip -1
>         if bof()
>            locate
>         endif
>      endif
>
>      thisform.refresh()
>
>   case arrowdown
>      if eof()
>         go bott
>      else
>         skip
>         if eof()
>            go bott
>         endif
>      endif
>
>      thisform.refresh()
>endcase
>
>
>I put the container class in a grid, when the user press the down arrow key,
>focus always gets set to the 2nd textbox and not the first. I tried putting a
>setfocus to the first textbox in the above code and it didn't work. Anybody have any suggestions. The uparrow key works fine. Thanks for your help.
>
>Randy
>
Previous
Reply
Map
View

Click here to load this message in the networking platform