Hi All

when I press Up or Down Arrow key in Textbox The Focus Go To The Next
Control How Can I Cancel This Action

Thanks

Re: TextBox LostFocus by Dan

Dan
Thu Jan 18 18:46:59 CST 2007

In the control's Keypress method:

LPARAMETERS nKeyCode, nShiftAltCtrl
If InList(nKeyCode,5,24)
NoDefault
Endif

Dan

"Taha" <taha105@hotmail.com> wrote in message
news:%23CTc2B2OHHA.3544@TK2MSFTNGP03.phx.gbl...
> Hi All
>
> when I press Up or Down Arrow key in Textbox The Focus Go To The Next
> Control How Can I Cancel This Action
>
> Thanks
>
>



Re: TextBox LostFocus by Taha

Taha
Thu Jan 18 19:23:35 CST 2007

Thank you Dan Freeman
"Dan Freeman" <spam@microsoft.com> wrote in message
news:uVpdUN2OHHA.5064@TK2MSFTNGP04.phx.gbl...
> In the control's Keypress method:
>
> LPARAMETERS nKeyCode, nShiftAltCtrl
> If InList(nKeyCode,5,24)
> NoDefault
> Endif
>
> Dan
>
> "Taha" <taha105@hotmail.com> wrote in message
> news:%23CTc2B2OHHA.3544@TK2MSFTNGP03.phx.gbl...
>> Hi All
>>
>> when I press Up or Down Arrow key in Textbox The Focus Go To The Next
>> Control How Can I Cancel This Action
>>
>> Thanks
>>
>>
>
>



Re: TextBox LostFocus by Cy

Cy
Sat Jan 20 22:48:29 CST 2007

Taha wrote:
> Thank you Dan Freeman
> "Dan Freeman" <spam@microsoft.com> wrote in message
> news:uVpdUN2OHHA.5064@TK2MSFTNGP04.phx.gbl...
>> In the control's Keypress method:
>>
>> LPARAMETERS nKeyCode, nShiftAltCtrl
>> If InList(nKeyCode,5,24)
>> NoDefault
>> Endif
>>
>> Dan
>>
>> "Taha" <taha105@hotmail.com> wrote in message
>> news:%23CTc2B2OHHA.3544@TK2MSFTNGP03.phx.gbl...
>>> Hi All
>>>
>>> when I press Up or Down Arrow key in Textbox The Focus Go To The Next
>>> Control How Can I Cancel This Action
>>>
>>> Thanks
>>>
>>>
>>
>
>
You can also do a SET CONFIRM ON in the init of the form which will
require tab or enter to move out of a field.

--
Cy Welch
Senior Programmer
MetSYS Inc
http://www.metsysinc.com

Re: TextBox LostFocus by Gene

Gene
Sun Jan 21 01:20:12 CST 2007

Cy Welch <cywelch@yahoo.com> wrote:

>Taha wrote:
>> Thank you Dan Freeman
>> "Dan Freeman" <spam@microsoft.com> wrote in message
>> news:uVpdUN2OHHA.5064@TK2MSFTNGP04.phx.gbl...
>>> In the control's Keypress method:
>>>
>>> LPARAMETERS nKeyCode, nShiftAltCtrl
>>> If InList(nKeyCode,5,24)
>>> NoDefault
>>> Endif
>>>
>>> Dan
>>>
>>> "Taha" <taha105@hotmail.com> wrote in message
>>> news:%23CTc2B2OHHA.3544@TK2MSFTNGP03.phx.gbl...
>>>> Hi All
>>>>
>>>> when I press Up or Down Arrow key in Textbox The Focus Go To The Next
>>>> Control How Can I Cancel This Action
>>>>
>>>> Thanks

>You can also do a SET CONFIRM ON in the init of the form which will
>require tab or enter to move out of a field.

Incorrect. It just means that typing displayable characters can
not cause the field to be exited. Control characters are another
story. I have set confirm on in my app, and backspace at the
beginning of a field and up arrow both result in the field being
exited.

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.